mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 01:02:46 +01:00
pcap engine logic for sensoroni
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
{%- 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 %}
|
||||
{
|
||||
"logFilename": "/opt/sensoroni/logs/sensoroni.log",
|
||||
"logLevel":"info",
|
||||
@@ -23,22 +24,22 @@
|
||||
"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 PCAPMERGED.enabled %}
|
||||
{%- if GLOBALS.pcap_engine == "STENO" %}
|
||||
},
|
||||
"stenoquery": {
|
||||
"executablePath": "/opt/sensoroni/scripts/stenoquery.sh",
|
||||
"pcapInputPath": "/nsm/pcap",
|
||||
"pcapOutputPath": "/nsm/pcapout"
|
||||
}
|
||||
{%- elif GLOBALS.pcap_engine == "SURICATA" %}
|
||||
{%- elif GLOBALS.pcap_engine == "SURICATA" and SURICATAMERGED.enabled %}
|
||||
},
|
||||
"suriquery": {
|
||||
"executablePath": "/opt/sensoroni/scripts/suriquery.sh",
|
||||
"pcapInputPath": "/nsm/suripcap",
|
||||
"pcapOutputPath": "/nsm/pcapout"
|
||||
}
|
||||
{%- endif %}
|
||||
{%- else %}
|
||||
}
|
||||
{%- endif %}
|
||||
|
||||
Reference in New Issue
Block a user