Skip to content

Instantly share code, notes, and snippets.

@dvas0004
Created June 28, 2015 12:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dvas0004/bb2dfda06d22255a4c60 to your computer and use it in GitHub Desktop.
Save dvas0004/bb2dfda06d22255a4c60 to your computer and use it in GitHub Desktop.
Logstash config for receiving OSSIM logs
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