mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-03 23:26:58 +02:00
Update to 2025-07-04 09:00
This commit is contained in:
20
roles/httpd_common/templates/vector.yml.j2
Normal file
20
roles/httpd_common/templates/vector.yml.j2
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
|
||||
sources:
|
||||
in_logs_httpd:
|
||||
type: file
|
||||
include: ["/var/log/httpd/access_log", "/var/log/httpd/error_log"]
|
||||
|
||||
transforms:
|
||||
format_logs_httpd:
|
||||
type: remap
|
||||
inputs: ["in_logs_httpd"]
|
||||
source: |
|
||||
if (.file == "/var/log/httpd/access_log"){
|
||||
.http = parse_grok!(.message, "%{HOSTNAME:host} %{HTTPD_COMBINEDLOG}")
|
||||
}
|
||||
if (.file == "/var/log/httpd/error_log"){
|
||||
.http = parse_apache_log!(.message, format:"error")
|
||||
}
|
||||
.service = "httpd"
|
||||
.group = "web"
|
Reference in New Issue
Block a user