mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
Logstash Module - Sensors now show up correclty
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{%- set MASTER = salt['pillar.get']('sensor:master', '') %}
|
||||
{%- set HOSTNAME = salt['grains.get']('host', '') %}
|
||||
|
||||
beat.name: {{ HOSTNAME }}
|
||||
name: {{ HOSTNAME }}
|
||||
|
||||
#========================== Modules configuration ============================
|
||||
filebeat.modules:
|
||||
|
||||
@@ -13,16 +13,16 @@ filter {
|
||||
mutate {
|
||||
rename => { "host" => "beat_host" }
|
||||
remove_tag => ["beat"]
|
||||
copy => {"%{beat[name]}" => "sensor_name"}
|
||||
copy => {"%{beat[name]}" => "syslog-host_from"}
|
||||
add_field => { "sensor_name" => "%{[beat][name]}" }
|
||||
add_field => { "syslog-host_from" => "%{[beat][name]}" }
|
||||
}
|
||||
}
|
||||
if "bro" in [tags] {
|
||||
mutate {
|
||||
rename => { "host" => "beat_host" }
|
||||
remove_tag => ["beat"]
|
||||
copy => {"%{beat[name]}" => "sensor_name"}
|
||||
copy => {"%{beat[name]}" => "syslog-host_from"}
|
||||
add_field => { "sensor_name" => "%{[beat][name]}" }
|
||||
add_field => { "syslog-host_from" => "%{[beat][name]}" }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user