mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
only import pcap and suricata if sensor
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
{%- from 'vars/globals.map.jinja' import GLOBALS %}
|
||||
{%- from 'sensoroni/map.jinja' import SENSORONIMERGED %}
|
||||
{%- from 'pcap/config.map.jinja' import PCAPMERGED %}
|
||||
{%- from 'suricata/map.jinja' import SURICATAMERGED %}
|
||||
{% from 'vars/globals.map.jinja' import GLOBALS %}
|
||||
{%- from 'sensoroni/map.jinja' import SENSORONIMERGED -%}
|
||||
{
|
||||
"logFilename": "/opt/sensoroni/logs/sensoroni.log",
|
||||
"logLevel":"info",
|
||||
@@ -24,8 +22,11 @@
|
||||
"importer": {},
|
||||
"statickeyauth": {
|
||||
"apiKey": "{{ GLOBALS.sensoroni_key }}"
|
||||
{#- if PCAPMERGED.enabled is true then we know that steno is the pcap engine #}
|
||||
{#- if it is false, then user has steno disabled in ui or has selected suricata for pcap engine #}
|
||||
{% if GLOBALS.is_sensor %}
|
||||
{% from 'pcap/config.map.jinja' import PCAPMERGED %}
|
||||
{% from 'suricata/map.jinja' import SURICATAMERGED %}
|
||||
{# if PCAPMERGED.enabled is true then we know that steno is the pcap engine #}
|
||||
{# if it is false, then user has steno disabled in ui or has selected suricata for pcap engine #}
|
||||
{%- if PCAPMERGED.enabled %}
|
||||
},
|
||||
"stenoquery": {
|
||||
@@ -42,6 +43,7 @@
|
||||
}
|
||||
{%- else %}
|
||||
}
|
||||
{% endif %}
|
||||
{%- endif %}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user