Skip to content

Instantly share code, notes, and snippets.

@archerslaw
Forked from guixing/logstash.conf
Created September 7, 2013 08:59
Show Gist options
  • Save archerslaw/6474017 to your computer and use it in GitHub Desktop.
Save archerslaw/6474017 to your computer and use it in GitHub Desktop.
input {
file {
path => "/var/log/messages"
type => "syslog"
}
file {
path => "/var/log/php_errors.log"
type => "phperror"
}
file {
path => "/var/log/httpd/access_log"
type => "apache_access"
}
file {
path => "/var/log/httpd/error_log"
type => "apache_error"
}
}
filter {
grok {
type => "apache_access"
pattern => "%{COMBINEDAPACHELOG}"
}
}
output {
elasticsearch { embedded => true }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment