Skip to content

Instantly share code, notes, and snippets.

@bigbosst
Last active December 23, 2015 18:59
Show Gist options
  • Save bigbosst/6679029 to your computer and use it in GitHub Desktop.
Save bigbosst/6679029 to your computer and use it in GitHub Desktop.
Windows Event Config for Logstash
C:
cd C:\logstash
set HOME=c:/logstash/sincedb
"C:\Program Files (x86)\Java\jre7\bin\java.exe" -Xmx32M -jar logstash-1.2.1-flatjar.jar agent --config logstash.conf --log logstash.log
input {
eventlog {
type => 'Win32-EventLog'
logfile=> 'Application'
}
eventlog {
type => 'Win32-EventLog'
logfile=> 'Security'
}
eventlog {
type => 'Win32-EventLog'
logfile=> 'System'
}
}
output {
redis {
host => "<SOME-REDIS-SERVER>"
data_type => "list"
key => "logstash"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment