Created
June 28, 2015 12:43
-
-
Save dvas0004/bb2dfda06d22255a4c60 to your computer and use it in GitHub Desktop.
Logstash config for receiving OSSIM logs
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 { | |
port => 5142 | |
type => "ossim-events" | |
codec => json { | |
charset => "CP1252" | |
} | |
} | |
syslog { | |
type => "syslog" | |
} | |
} | |
filter { | |
mutate { | |
add_field => { "Agent_IP" => "%{host}" } | |
} | |
######## ALIENVAULT OSSIM Logs ######################################## | |
if [type] == "ossim-events" { | |
kv { | |
value_split => "='" | |
field_split => "' " | |
} | |
} | |
} | |
output { | |
stdout { } | |
elasticsearch { | |
host => "localhost" | |
template => "/elk/logstash/templates/elasticsearch-template.json" | |
template_overwrite => true | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment