Hello,
Don't know if I choose right category but need some answers about elk stack:
Can I find online elk stack emulator for config testing
How much memory ELK stack will drain for small network monitoring suricata logs
Do I need to add json plugin in logstash like you put in docker file example
Can I add another conf file AND/OR different name in logstash/pipeline
Where can I find rules for configuring suricata with kibana
Can you check someone code for me bellow;
I have remote suricata on which plan to install filebeats and send logs to logstash
This is my conf
ON Filebeat side
prospectors:
- input_type: log
paths:
- /var/log/suricata/eve.json
document_type: SuricataIDPS
output:
logstash:
hosts:
- logstash.hostname:["xxx.xxx.xxx.xxx:5044"]
ON logstash side
input {
beats {
port => 5044
codec => json
}
}
}
filter {
if [type] == "SuricataIDPS" {
date {
match => [ "timestamp", "ISO8601" ]
}
ruby {
code => "if event['event_type'] == 'fileinfo'; event['fileinfo']['type']=event['fileinfo']['magic'].to_s.split(',')[0]; end;"
}
}
if [src_ip] {
geoip {
source => "src_ip"
target => "geoip"
#database => "/etc/logstash/GeoLite2-City.mmdb"
}
mutate {
convert => [ "[geoip][coordinates]", "float" ]
}
if ![geoip.ip] {
if [dest_ip] {
geoip {
source => "dest_ip"
target => "geoip"
#database => "/etc/logstash/GeoLite2-City.mmdb"
}
mutate {
convert => [ "[geoip][coordinates]", "float" ]
}
}
}
}
}
output {
elasticsearch {
hosts => ["elasticsearch:9200"]
}
}