Created
August 6, 2020 11:56
-
-
Save git001/3b11a716788131531feb233c9b0b1e9e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[SERVICE] | |
Flush 5 | |
Daemon Off | |
Log_Level trace | |
Parsers_File parsers.conf | |
Plugins_File plugins.conf | |
HTTP_Server On | |
HTTP_Listen 0.0.0.0 | |
HTTP_Port 2020 | |
[INPUT] | |
Name syslog | |
Tag ocp.router | |
Mode udp | |
Port 5140 | |
Parser syslog-rfc3164 | |
[OUTPUT] | |
Name stdout | |
Match * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[PARSER] | |
Name syslog-rfc3164 | |
Format regex | |
Regex /^\<(?<pri>[0-9]+)\>(?<time>[^ ]* {1,2}[^ ]* [^ ]*) (?<process>[^ ]*): *(?<message>.*)$/ | |
Time_Key time | |
Time_Format %b %d %H:%M:%S | |
Time_Format %Y-%m-%dT%H:%M:%S.%L | |
Time_Keep On | |
# HAProxy parser set | |
[PARSER] | |
Name haproxy_default_tcp | |
Format regex | |
Regex ^(?<host>[^ ]*) \[(?<time>[^\]]*)\] (?<frontend>[^ ]*) (?<backend>[^\/]+)\/(?<server>[^ ]*) (?<timewait>-?\d+)\/(?<timetcpcon>-?\d+)\/(?<timetotal>-?\d+) (?<bytesreadstoc>\d+) (?<terminationstateter>[-a-zA-Z])(?<terminationstateclo>[-a-zA-Z]) (?<actconnproc>\d+)\/(?<feconnsess>\d+)\/(?<beconnsess>\d+)\/(?<srvconn>\d+)\/(?<retries>\d+) (?<srvqueue>\d+)\/(?<backendqueue>\d+)$ | |
# 06/Aug/2020:01:36:31.454 | |
Time_Format %d/%b/%Y:%H:%M:%S.%L | |
Time_Keep Off | |
Time_Key time | |
[PARSER] | |
Name haproxy_default_http | |
Format regex | |
Regex ^(?<host>[^:]*):(?<port>\d+) \[(?<time>[^\]]*)\] (?<frontend>[^ ]*) (?<backend>[^\/]+)\/(?<server>[^ ]*) (?<timeclientreq>-?\d+)\/(?<timewait>-?\d+)\/(?<timetcpcon>-?\d+)\/(?<timetotalsessdur>-?\d+)\/(?<timetotalactive>-?\d+) (?<httpstatuscode>\d+) (?<bytesreadstoc>\d+) - - (?<terminationstateter>[-a-zA-Z])(?<terminationstateclo>[-a-zA-Z])(?<terminationstatecookieclient>[-a-zA-Z])(?<terminationstatecookieserver>[-a-zA-Z]) (?<actconnproc>\d+)\/(?<feconnsess>\d+)\/(?<beconnsess>\d+)\/(?<srvconn>\d+)\/(?<retries>\d+) (?<srvqueue>\d+)\/(?<backendqueue>\d+) "(?<method>\w+)(?: +(?<path>[^\?]*?)\?(?<query>[^ ]*?))(?: +(?<httpver>[^\"]*))"$ | |
# 06/Aug/2020:01:36:31.454 | |
Time_Format %d/%b/%Y:%H:%M:%S.%L | |
Time_Keep Off | |
Time_Key time |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment