Created
October 5, 2015 12:51
-
-
Save budgester/ccb151cbd14e9657d436 to your computer and use it in GitHub Desktop.
This file contains 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
input { | |
file { | |
type => "httpd" | |
path => "/var/log/httpd/*.log" | |
} | |
} | |
filter { | |
if [type] == "httpd" { | |
grok { | |
match => [ "message", "%{COMBINEDAPACHELOG}" ] | |
} | |
} | |
} |
This file contains 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
input { | |
file { | |
type => "microservice" | |
path => "/var/log/experthealth/eh-checkout-basket-web/info*.log" | |
path => "/var/log/experthealth/eh-patient-web/info*.log" | |
path => "/var/log/experthealth/eh-util-web/info*.log" | |
path => "/var/log/experthealth/eh-checkout-fe-basket-web/info*.log" | |
} | |
} | |
filter { | |
if [type] == "microservice" { | |
grok { | |
match => [ "message", "%{TIMESTAMP_ISO8601:time} %{NOTSPACE:threadname} %{LOGLEVEL:loglevel}%{SPACE}%{JAVACLASS:javaclass} %{GREEDYDATA:logdata}" ] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment