Last active
December 23, 2015 18:59
-
-
Save bigbosst/6679029 to your computer and use it in GitHub Desktop.
Windows Event Config for Logstash
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
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 |
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 { | |
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