mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-17 06:22:53 +01:00
Logstash Module - Change it to arrays
This commit is contained in:
@@ -2,7 +2,6 @@
|
|||||||
{%- set HOSTNAME = salt['grains.get']('host', '') %}
|
{%- set HOSTNAME = salt['grains.get']('host', '') %}
|
||||||
|
|
||||||
beat.name: {{ HOSTNAME }}
|
beat.name: {{ HOSTNAME }}
|
||||||
beat.hostname: {{ HOSTNAME }}
|
|
||||||
|
|
||||||
#========================== Modules configuration ============================
|
#========================== Modules configuration ============================
|
||||||
filebeat.modules:
|
filebeat.modules:
|
||||||
|
|||||||
@@ -11,21 +11,18 @@ input {
|
|||||||
filter {
|
filter {
|
||||||
if "ids" in [tags] {
|
if "ids" in [tags] {
|
||||||
mutate {
|
mutate {
|
||||||
add_field => {"sensor_name" => "%{[beat][name]}"}
|
rename => { "[beat][name]", "sensor_name" }
|
||||||
add_field => {"syslog-host_from" => "%{[beat][hostname]}"}
|
rename => { "[beat][hostname]", "syslog-host_from" }
|
||||||
remove_tag => ["beat"]
|
remove_tag => ["beat"]
|
||||||
rename => { "host" => "beat_host" }
|
rename => { "host" => "beat_host" }
|
||||||
remove_field => ["[beat][name]", "[beat][hostname]"]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if "bro" in [tags] {
|
if "bro" in [tags] {
|
||||||
mutate {
|
mutate {
|
||||||
add_field => {"sensor_name" => "%{[beat][name]}"}
|
rename => { "[beat][name]", "sensor_name" }
|
||||||
add_field => {"syslog-host_from" => "%{[beat][hostname]}"}
|
rename => { "[beat][hostname]", "syslog-host_from" }
|
||||||
remove_tag => ["beat"]
|
remove_tag => ["beat"]
|
||||||
rename => { "host" => "beat_host" }
|
rename => { "host" => "beat_host" }
|
||||||
remove_field => ["[beat][name]", "[beat][hostname]"]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user