Skip to content

Instantly share code, notes, and snippets.

@drj11
Created June 4, 2014 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drj11/a8da41eb023217aac8d0 to your computer and use it in GitHub Desktop.
Save drj11/a8da41eb023217aac8d0 to your computer and use it in GitHub Desktop.
logstash.conf
input {
file {
type => "syslog"
path => [ # "/ext/var/log/*.log",
"/ext/var/log/messages",
"/ext/var/log/syslog"
]
start_position => "beginning"
}
}
filter {
grok {
match => [ "message", "%{SYSLOGBASE}" ]
}
date {
match => ["timestamp", "MMM d HH:mm:ss", "MMM dd HH:mm:ss"]
}
}
output {
stdout {
codec => rubydebug
}
elasticsearch {
embedded => true
index => "log"
index_type => "message"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment