Created
October 24, 2014 02:10
-
-
Save gt50/c93d0f918b5975d103dc to your computer and use it in GitHub Desktop.
windowseventlog.conf 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
input { | |
tcp { | |
type => "WindowsEventLog" | |
port => 3516 | |
codec => json { | |
charset => [ "CP1252" ] | |
} | |
} | |
} | |
filter { | |
date { | |
match => [ "EventTime", "YYYY-MM-dd HH:mm:ss" ] | |
timezone => "America/Los_Angeles" | |
} | |
} | |
output { | |
if [type] == "WindowsEventLog" { | |
elasticsearch { host => localhost } | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment