mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Logstash Module - Change some fields so dashboards load
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
{%- set MASTER = salt['pillar.get']('sensor:master', '') %}
|
||||
{%- set HOSTNAME = salt['grains.get']('host', '') %}
|
||||
|
||||
beat.name: {{ HOSTNAME }}
|
||||
beat.hostname: {{ HOSTNAME }}
|
||||
|
||||
#========================== Modules configuration ============================
|
||||
filebeat.modules:
|
||||
#=========================== Filebeat prospectors =============================
|
||||
|
||||
@@ -11,8 +11,11 @@ input {
|
||||
filter {
|
||||
if "ids" in [tags] {
|
||||
mutate {
|
||||
add_field => {"sensor_name" => "%{beat.name}"}
|
||||
add_field => {"syslog-host_from" => "%{beat.hostname}"}
|
||||
remove_tag => ["beat"]
|
||||
rename => { "host" => "beat_host" }
|
||||
remove_field => ["beat.name", "beat.hostname"]
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user