mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-08 18:22:47 +01:00
Logstash Module - Change some fields so dashboards load
This commit is contained in:
@@ -1,4 +1,8 @@
|
|||||||
{%- set MASTER = salt['pillar.get']('sensor:master', '') %}
|
{%- set MASTER = salt['pillar.get']('sensor:master', '') %}
|
||||||
|
{%- set HOSTNAME = salt['grains.get']('host', '') %}
|
||||||
|
|
||||||
|
beat.name: {{ HOSTNAME }}
|
||||||
|
beat.hostname: {{ HOSTNAME }}
|
||||||
|
|
||||||
#========================== Modules configuration ============================
|
#========================== Modules configuration ============================
|
||||||
filebeat.modules:
|
filebeat.modules:
|
||||||
|
|||||||
@@ -11,8 +11,11 @@ input {
|
|||||||
filter {
|
filter {
|
||||||
if "ids" in [tags] {
|
if "ids" in [tags] {
|
||||||
mutate {
|
mutate {
|
||||||
|
add_field => {"sensor_name" => "%{beat.name}"}
|
||||||
|
add_field => {"syslog-host_from" => "%{beat.hostname}"}
|
||||||
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