Skip to content

Instantly share code, notes, and snippets.

@budgester
Created October 5, 2015 12:51
Show Gist options
  • Save budgester/ccb151cbd14e9657d436 to your computer and use it in GitHub Desktop.
Save budgester/ccb151cbd14e9657d436 to your computer and use it in GitHub Desktop.
input {
file {
type => "httpd"
path => "/var/log/httpd/*.log"
}
}
filter {
if [type] == "httpd" {
grok {
match => [ "message", "%{COMBINEDAPACHELOG}" ]
}
}
}
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