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