forked from wazuh/wazuh-docker
Updating logstash configuration
This commit is contained in:
@@ -26,14 +26,14 @@ filter {
|
|||||||
geoip {
|
geoip {
|
||||||
source => "@src_ip"
|
source => "@src_ip"
|
||||||
target => "GeoLocation"
|
target => "GeoLocation"
|
||||||
fields => ["city_name", "continent_code", "country_code2", "country_name", "region_name", "location"]
|
fields => ["city_name", "country_name", "region_name", "location"]
|
||||||
}
|
}
|
||||||
date {
|
date {
|
||||||
match => ["timestamp", "ISO8601"]
|
match => ["timestamp", "ISO8601"]
|
||||||
target => "@timestamp"
|
target => "@timestamp"
|
||||||
}
|
}
|
||||||
mutate {
|
mutate {
|
||||||
remove_field => [ "timestamp", "beat", "input_type", "tags", "count", "@version", "log", "offset", "type","@src_ip"]
|
remove_field => ["timestamp", "beat", "input_type", "tags", "count", "@version", "log", "offset", "type", "@src_ip", "host"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
output {
|
output {
|
||||||
|
|||||||
Reference in New Issue
Block a user