mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +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 MASTER = salt['pillar.get']('sensor:master', '') %}
|
||||||
{%- set HOSTNAME = salt['grains.get']('host', '') %}
|
{%- set HOSTNAME = salt['grains.get']('host', '') %}
|
||||||
|
|
||||||
beat.name: {{ HOSTNAME }}
|
name: {{ HOSTNAME }}
|
||||||
|
|
||||||
#========================== Modules configuration ============================
|
#========================== Modules configuration ============================
|
||||||
filebeat.modules:
|
filebeat.modules:
|
||||||
|
|||||||
@@ -13,16 +13,16 @@ filter {
|
|||||||
mutate {
|
mutate {
|
||||||
rename => { "host" => "beat_host" }
|
rename => { "host" => "beat_host" }
|
||||||
remove_tag => ["beat"]
|
remove_tag => ["beat"]
|
||||||
copy => {"%{beat[name]}" => "sensor_name"}
|
add_field => { "sensor_name" => "%{[beat][name]}" }
|
||||||
copy => {"%{beat[name]}" => "syslog-host_from"}
|
add_field => { "syslog-host_from" => "%{[beat][name]}" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if "bro" in [tags] {
|
if "bro" in [tags] {
|
||||||
mutate {
|
mutate {
|
||||||
rename => { "host" => "beat_host" }
|
rename => { "host" => "beat_host" }
|
||||||
remove_tag => ["beat"]
|
remove_tag => ["beat"]
|
||||||
copy => {"%{beat[name]}" => "sensor_name"}
|
add_field => { "sensor_name" => "%{[beat][name]}" }
|
||||||
copy => {"%{beat[name]}" => "syslog-host_from"}
|
add_field => { "syslog-host_from" => "%{[beat][name]}" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user