Skip to content

Instantly share code, notes, and snippets.

@gradiuscypher
Created December 30, 2017 22:30
Show Gist options
  • Save gradiuscypher/6acda05927a7a0660d379ca988c73807 to your computer and use it in GitHub Desktop.
Save gradiuscypher/6acda05927a7a0660d379ca988c73807 to your computer and use it in GitHub Desktop.
input {
file {
path => "/nsmdata/logs/suricata/eve.json"
}
}
filter {
json {
source => "message"
remove_field => ["message"]
}
}
output {
elasticsearch {
hosts => "elastic:9200"
manage_template => false
index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}"
document_type => "%{[@metadata][type]}"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment