Created
March 25, 2014 16:40
-
-
Save inliniac/9765934 to your computer and use it in GitHub Desktop.
Logstash Suricata configs
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
{ | |
"network": { | |
"servers": [ "x.x.x.x:5043" ], | |
"ssl certificate": "./lumberjack.pub", | |
"ssl key": "./lumberjack.key", | |
"ssl ca": "./lumberjack.pub" | |
}, | |
"files": [ | |
{ | |
"paths": [ "/var/log/suricata/eve.json" ], | |
"fields": { "type": "suricata" } | |
} | |
] | |
} |
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 { | |
lumberjack { | |
# The port to listen on | |
port => 5043 | |
# The paths to your ssl cert and key | |
ssl_certificate => "/etc/logstash/pki/lumberjack.pub" | |
ssl_key => "/etc/logstash/pki/lumberjack.key" | |
# Set this to whatever you want. | |
codec => json | |
} | |
} | |
#geoip part | |
filter { | |
if [src_ip] { | |
geoip { | |
source => "src_ip" | |
target => "geoip" | |
database => "/etc/logstash/geoip/GeoLiteCity.dat" | |
add_field => [ "[geoip][coordinates]", "%{[geoip][longitude]}" ] | |
add_field => [ "[geoip][coordinates]", "%{[geoip][latitude]}" ] | |
} | |
mutate { | |
convert => [ "[geoip][coordinates]", "float" ] | |
} | |
} | |
} | |
output { | |
elasticsearch { embedded => true } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How I combine lumberjack to receive normals logs and also JSON? Thanks