mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Modify Steno Config
This commit is contained in:
@@ -1,19 +1,12 @@
|
|||||||
{%- set INTERFACE = salt['pillar.get']('sensor:interface', 'bond0') %}
|
{%- set INTERFACE = salt['pillar.get']('sensor:interface') %}
|
||||||
{%- set DISKFREEPERCENTAGE = salt['pillar.get']('steno:diskfreepercentage', 10) %}
|
{%- set DISKFREEPERCENTAGE = salt['pillar.get']('pcap:config:diskfreepercentage') %}
|
||||||
{%- set MAXFILES = salt['pillar.get']('steno:maxfiles', 30000) %}
|
{%- set MAXFILES = salt['pillar.get']('pcap:config:maxdirectoryfiles') %}
|
||||||
{%- set BLOCKS = salt['pillar.get']('steno:blocks', 2048) %}
|
{%- set BLOCKS = salt['pillar.get']('pcap:config:blocks') %}
|
||||||
{%- set FILEMB = salt['pillar.get']('steno:filemb', 4096) %}
|
{%- set FILEMB = salt['pillar.get']('pcap:config:preallocate_file_mb') %}
|
||||||
{%- set AIOPS = salt['pillar.get']('steno:aiops', 128) %}
|
{%- set AIOPS = salt['pillar.get']('pcap:config:aiops') %}
|
||||||
{%- set THREADS = salt['pillar.get']('steno:threads', 1) %}
|
|
||||||
{
|
{
|
||||||
"Threads": [
|
"Threads": [
|
||||||
{ "PacketsDirectory": "/nsm/pcap", "IndexDirectory": "/nsm/pcapindex", "MaxDirectoryFiles": {{ MAXFILES }}, "DiskFreePercentage": {{ DISKFREEPERCENTAGE }} }
|
{ "PacketsDirectory": "/nsm/pcap", "IndexDirectory": "/nsm/pcapindex", "MaxDirectoryFiles": {{ MAXFILES }}, "DiskFreePercentage": {{ DISKFREEPERCENTAGE }} }
|
||||||
{%- if THREADS > 1 %}
|
|
||||||
{%- for i in range(2,THREADS+1) %}
|
|
||||||
, { "PacketsDirectory": "/nsm/pcap" , "IndexDirectory": "/nsm/pcapindex", "MaxDirectoryFiles": {{ MAXFILES }}, "DiskFreePercentage": {{ DISKFREEPERCENTAGE }} }
|
|
||||||
{%- endfor %}
|
|
||||||
{%- endif %}
|
|
||||||
]
|
|
||||||
, "StenotypePath": "/usr/bin/stenotype"
|
, "StenotypePath": "/usr/bin/stenotype"
|
||||||
, "Interface": "{{ INTERFACE }}"
|
, "Interface": "{{ INTERFACE }}"
|
||||||
, "Port": 1234
|
, "Port": 1234
|
||||||
|
|||||||
Reference in New Issue
Block a user