Skip to content

Instantly share code, notes, and snippets.

@gt50
Created October 24, 2014 02:10
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 gt50/c93d0f918b5975d103dc to your computer and use it in GitHub Desktop.
Save gt50/c93d0f918b5975d103dc to your computer and use it in GitHub Desktop.
windowseventlog.conf for logstash
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