@@ -8,21 +8,21 @@ processors:
88 field : message
99 patterns :
1010 - ' %{HAPROXY_DATE:haproxy.request_date} %{IPORHOST:haproxy.source} %{PROG:process.name}(?:\[%{POSINT:process.pid:long}\])?:
11- %{GREEDYDATA} %{IPORHOST:source.address}:%{POSINT:source.port:long} %{WORD}
11+ %{GREEDYDATA} ( %{IPORHOST:source.address}|-) :%{POSINT:source.port:long} %{WORD}
1212 %{IPORHOST:destination.ip}:%{POSINT:destination.port:long} \(%{WORD:haproxy.frontend_name}/%{WORD:haproxy.mode}\)'
13- - ' (%{NOTSPACE:process.name}\[%{NUMBER:process.pid:long}\]: )?%{IP:source.address}:%{NUMBER:source.port:long}
13+ - ' (%{NOTSPACE:process.name}\[%{NUMBER:process.pid:long}\]: )?( %{IP:source.address}|-) :%{NUMBER:source.port:long}
1414 \[%{NOTSPACE:haproxy.request_date}\] %{NOTSPACE:haproxy.frontend_name} %{NOTSPACE:haproxy.backend_name}/%{NOTSPACE:haproxy.server_name}
15- %{NUMBER:haproxy.http.request.time_wait_ms:long}/%{NUMBER:haproxy.total_waiting_time_ms:long}/%{NUMBER:haproxy.connection_wait_time_ms:long}/%{NUMBER:haproxy.http.request.time_wait_without_data_ms:long}/%{NUMBER:temp.duration:long}
15+ (%{IPORHOST:destination.address} )? %{NUMBER:haproxy.http.request.time_wait_ms:long}/%{NUMBER:haproxy.total_waiting_time_ms:long}/%{NUMBER:haproxy.connection_wait_time_ms:long}/%{NUMBER:haproxy.http.request.time_wait_without_data_ms:long}/%{NUMBER:temp.duration:long}
1616 %{NUMBER:http.response.status_code:long} %{NUMBER:haproxy.bytes_read:long} %{NOTSPACE:haproxy.http.request.captured_cookie}
1717 %{NOTSPACE:haproxy.http.response.captured_cookie} %{NOTSPACE:haproxy.termination_state}
1818 %{NUMBER:haproxy.connections.active:long}/%{NUMBER:haproxy.connections.frontend:long}/%{NUMBER:haproxy.connections.backend:long}/%{NUMBER:haproxy.connections.server:long}/%{NUMBER:haproxy.connections.retries:long}
1919 %{NUMBER:haproxy.server_queue:long}/%{NUMBER:haproxy.backend_queue:long} (\{%{DATA:haproxy.http.request.captured_headers}\}
2020 \{%{DATA:haproxy.http.response.captured_headers}\} |\{%{DATA}\} )?"%{GREEDYDATA:haproxy.http.request.raw_request_line}"'
21- - ' (%{NOTSPACE:process.name}\[%{NUMBER:process.pid:long}\]: )?%{IP:source.address}:%{NUMBER:source.port:long}
21+ - ' (%{NOTSPACE:process.name}\[%{NUMBER:process.pid:long}\]: )?( %{IP:source.address}|-) :%{NUMBER:source.port:long}
2222 \[%{NOTSPACE:haproxy.request_date}\] %{NOTSPACE:haproxy.frontend_name}/%{NOTSPACE:haproxy.bind_name}
2323 %{GREEDYDATA:haproxy.error_message}'
2424 - ' %{HAPROXY_DATE} %{IPORHOST:haproxy.source} (%{NOTSPACE:process.name}\[%{NUMBER:process.pid:long}\]:
25- )?%{IP:source.address}:%{NUMBER:source.port:long} \[%{NOTSPACE:haproxy.request_date}\]
25+ )?( %{IP:source.address}|-) :%{NUMBER:source.port:long} \[%{NOTSPACE:haproxy.request_date}\]
2626 %{NOTSPACE:haproxy.frontend_name} %{NOTSPACE:haproxy.backend_name}/%{NOTSPACE:haproxy.server_name}
2727 %{NUMBER:haproxy.total_waiting_time_ms:long}/%{NUMBER:haproxy.connection_wait_time_ms:long}/%{NUMBER:temp.duration:long}
2828 %{NUMBER:haproxy.bytes_read:long} %{NOTSPACE:haproxy.termination_state} %{NUMBER:haproxy.connections.active:long}/%{NUMBER:haproxy.connections.frontend:long}/%{NUMBER:haproxy.connections.backend:long}/%{NUMBER:haproxy.connections.server:long}/%{NUMBER:haproxy.connections.retries:long}
@@ -71,6 +71,15 @@ processors:
7171 ignore_failure : true
7272 patterns :
7373 - ^%{IP:source.ip}$
74+ - grok :
75+ field : destination.address
76+ patterns :
77+ - ^%{IP:destination.ip}$
78+ on_failure :
79+ - set :
80+ field : destination.domain
81+ value : " {{destination.address}}"
82+ ignore_empty_value : true
7483- geoip :
7584 field : source.ip
7685 target_field : source.geo
@@ -121,6 +130,10 @@ processors:
121130 field : related.ip
122131 value : " {{destination.ip}}"
123132 if : " ctx?.destination?.ip != null"
133+ - append :
134+ field : related.hosts
135+ value : " {{destination.domain}}"
136+ if : " ctx?.destination?.domain != null"
124137- set :
125138 field : event.kind
126139 value : event
0 commit comments