mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
add zeekloglookup to translate zeeklogs to filebeat filesets
This commit is contained in:
@@ -23,7 +23,6 @@
|
|||||||
{% from 'filebeat/map.jinja' import THIRDPARTY with context %}
|
{% from 'filebeat/map.jinja' import THIRDPARTY with context %}
|
||||||
{% from 'filebeat/map.jinja' import SO with context %}
|
{% from 'filebeat/map.jinja' import SO with context %}
|
||||||
|
|
||||||
|
|
||||||
filebeatetcdir:
|
filebeatetcdir:
|
||||||
file.directory:
|
file.directory:
|
||||||
- name: /opt/so/conf/filebeat/etc
|
- name: /opt/so/conf/filebeat/etc
|
||||||
|
|||||||
@@ -4,3 +4,7 @@
|
|||||||
{% import_yaml 'filebeat/securityoniondefaults.yaml' as SODEFAULTS %}
|
{% import_yaml 'filebeat/securityoniondefaults.yaml' as SODEFAULTS %}
|
||||||
{% set SO = SODEFAULTS.securityonion_filebeat %}
|
{% set SO = SODEFAULTS.securityonion_filebeat %}
|
||||||
{#% set SO = salt['pillar.get']('filebeat:third_party_filebeat', default=SODEFAULTS.third_party_filebeat, merge=True) %#}
|
{#% set SO = salt['pillar.get']('filebeat:third_party_filebeat', default=SODEFAULTS.third_party_filebeat, merge=True) %#}
|
||||||
|
|
||||||
|
{% set ZEEKLOGLOOKUP = {
|
||||||
|
'conn': 'connection',
|
||||||
|
} %}
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
{%- set ZEEKVER = salt['pillar.get']('global:mdengine', '') %}
|
{%- set ZEEKVER = salt['pillar.get']('global:mdengine', '') %}
|
||||||
|
{% from 'filebeat/map.jinja' import ZEEKLOGLOOKUP with context %}
|
||||||
|
|
||||||
securityonion_filebeat:
|
securityonion_filebeat:
|
||||||
modules:
|
modules:
|
||||||
elasticsearch:
|
elasticsearch:
|
||||||
@@ -25,7 +27,12 @@ securityonion_filebeat:
|
|||||||
{%- if ZEEKVER != 'SURICATA' %}
|
{%- if ZEEKVER != 'SURICATA' %}
|
||||||
zeek:
|
zeek:
|
||||||
{%- for LOGNAME in salt['pillar.get']('zeeklogs:enabled', '') %}
|
{%- for LOGNAME in salt['pillar.get']('zeeklogs:enabled', '') %}
|
||||||
{{ LOGNAME }}:
|
{% if LOGNAME in ZEEKLOGLOOKUP.keys() %}
|
||||||
|
{% set FILESET = ZEEKLOGLOOKUP.get(LOGNAME) %}
|
||||||
|
{% else %}
|
||||||
|
{% set FILESET = LOGNAME %}
|
||||||
|
{% endif %}
|
||||||
|
{{ FILESET }}:
|
||||||
enabled: false
|
enabled: false
|
||||||
var.paths: ["/nsm/zeek/logs/current/{{ LOGNAME }}.log"]
|
var.paths: ["/nsm/zeek/logs/current/{{ LOGNAME }}.log"]
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
|||||||
Reference in New Issue
Block a user