mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-12-02 08:36:08 +01:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3743173c88 |
No files matched your search
@@ -8,10 +8,10 @@ influxdb:
|
||||
flux-log-enabled: false
|
||||
hardening-enabled: true
|
||||
http-bind-address: :8086
|
||||
http-idle-timeout: 0s
|
||||
http-idle-timeout: 0
|
||||
http-read-header-timeout: 10s
|
||||
http-read-timeout: 0s
|
||||
http-write-timeout: 0s
|
||||
http-read-timeout: 0
|
||||
http-write-timeout: 0
|
||||
influxql-max-select-buckets: 0
|
||||
influxql-max-select-point: 0
|
||||
influxql-max-select-series: 0
|
||||
|
||||
@@ -42,17 +42,17 @@ influxdb:
|
||||
advanced: True
|
||||
helpLink: influxdb
|
||||
http-idle-timeout:
|
||||
description: Keep-alive timeout while a connection waits for new requests. A value of 0s is the same as no timeout enforced.
|
||||
description: Keep-alive timeout while a connection waits for new requests. A value of 0 is the same as no timeout enforced.
|
||||
global: True
|
||||
advanced: True
|
||||
helpLink: influxdb
|
||||
http-read-header-timeout:
|
||||
description: The duration to wait for a request header before closing the connection. A value of 0s is the same as no timeout enforced.
|
||||
description: The duration to wait for a request header before closing the connection. A value of 0 is the same as no timeout enforced.
|
||||
global: True
|
||||
advanced: True
|
||||
helpLink: influxdb
|
||||
http-read-timeout:
|
||||
description: The duration to wait for the request to be fully read before closing the connection. A value of 0s is the same as no timeout enforced.
|
||||
description: The duration to wait for the request to be fully read before closing the connection. A value of 0 is the same as no timeout enforced.
|
||||
global: True
|
||||
advanced: True
|
||||
helpLink: influxdb
|
||||
|
||||
@@ -128,7 +128,7 @@ lookup_org_id_with_wait() {
|
||||
wait=10
|
||||
while [[ $attempts -lt $max_attempts ]]; do
|
||||
response=$(request orgs?org=Security+Onion)
|
||||
oid=$(echo "$response" | jq -r ".orgs[]? | select(.name == \"Security Onion\").id")
|
||||
oid=$(echo "$response" | jq -r ".orgs[] | select(.name == \"Security Onion\").id")
|
||||
if [[ -z $oid ]]; then
|
||||
attempts=$((attempts+1))
|
||||
log "Server does not appear to be running or fully initialized - will try again in $wait seconds ($attempts / $max_attempts)"
|
||||
|
||||
@@ -19,6 +19,8 @@ so-redis:
|
||||
docker_container.running:
|
||||
- image: {{ GLOBALS.registry_host }}:5000/{{ GLOBALS.image_repo }}/so-redis:{{ GLOBALS.so_version }}
|
||||
- restart_policy: unless-stopped
|
||||
- shutdown_timeout: 180
|
||||
- stop_timeout: 180
|
||||
- hostname: so-redis
|
||||
- user: socore
|
||||
- networks:
|
||||
@@ -60,7 +62,7 @@ so-redis:
|
||||
- {{ ULIMIT.name }}={{ ULIMIT.soft }}:{{ ULIMIT.hard }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
- entrypoint: "redis-server /usr/local/etc/redis/redis.conf"
|
||||
- entrypoint: "redis-server /usr/local/etc/redis/redis.conf --rdb-version-check relaxed"
|
||||
- watch:
|
||||
- cmd: ca_trust_extract
|
||||
- file: trusttheca
|
||||
|
||||
@@ -2557,61 +2557,6 @@ soc:
|
||||
grid:
|
||||
maxUploadSize: 26214400
|
||||
staleMetricsMs: 120000
|
||||
recommendedAlarms:
|
||||
- name: Root Disk Usage
|
||||
metric: disk
|
||||
metricKey: disk_used_root
|
||||
operator: gt
|
||||
threshold: '95'
|
||||
durationSeconds: 0
|
||||
severity: critical
|
||||
clearedSeverity: info
|
||||
enabled: true
|
||||
- name: NSM Disk Usage
|
||||
metric: disk
|
||||
metricKey: disk_used_nsm
|
||||
operator: gt
|
||||
threshold: '95'
|
||||
durationSeconds: 0
|
||||
severity: critical
|
||||
clearedSeverity: info
|
||||
enabled: true
|
||||
- name: Low PCAP Retention
|
||||
metric: pcap_retention
|
||||
metricKey: pcap_retention
|
||||
operator: lt
|
||||
threshold: '1'
|
||||
durationSeconds: 0
|
||||
severity: critical
|
||||
clearedSeverity: info
|
||||
enabled: true
|
||||
- name: Suricata Packet Loss
|
||||
metric: loss
|
||||
metricKey: suricata_loss
|
||||
operator: gt
|
||||
threshold: '5'
|
||||
durationSeconds: 0
|
||||
severity: critical
|
||||
clearedSeverity: info
|
||||
enabled: true
|
||||
- name: Zeek Packet Loss
|
||||
metric: loss
|
||||
metricKey: zeek_loss
|
||||
operator: gt
|
||||
threshold: '5'
|
||||
durationSeconds: 0
|
||||
severity: critical
|
||||
clearedSeverity: info
|
||||
enabled: true
|
||||
- name: Low Monitor Traffic
|
||||
metric: net
|
||||
metricKey: traffic_mon_in
|
||||
operator: lt
|
||||
threshold: '5'
|
||||
durationSeconds: 0
|
||||
severity: critical
|
||||
clearedSeverity: info
|
||||
enabled: true
|
||||
cases:
|
||||
advanced: false
|
||||
aggregationActionsEnabled: false
|
||||
|
||||
@@ -1343,69 +1343,6 @@ soc:
|
||||
staleMetricsMs:
|
||||
description: The age in milliseconds of node metrics when they are considered stale. Stale metrics have a faded appearance on the Grid screen.
|
||||
global: True
|
||||
recommendedAlarms:
|
||||
description: Recommended alarms offered on the Grid page's Alarms tab and Options dialog. Each entry is an alarm definition without an ID and needs a name. Added recommended alarms become ordinary alarms, and changing an entry here doesn't change alarms already added. Set to an empty list to hide the recommended alarms.
|
||||
global: True
|
||||
advanced: True
|
||||
forcedType: "[]{}"
|
||||
syntax: json
|
||||
helpLink: grid
|
||||
uiElements:
|
||||
- field: name
|
||||
label: Name
|
||||
required: True
|
||||
- field: metric
|
||||
label: Metric
|
||||
required: True
|
||||
- field: metricKey
|
||||
label: Metric Key
|
||||
required: False
|
||||
- field: operator
|
||||
label: Operator
|
||||
required: True
|
||||
options:
|
||||
- gt
|
||||
- gte
|
||||
- lt
|
||||
- lte
|
||||
- eq
|
||||
- ne
|
||||
- contains
|
||||
- field: threshold
|
||||
label: Threshold
|
||||
required: True
|
||||
forcedType: string
|
||||
- field: durationSeconds
|
||||
label: Duration Seconds
|
||||
required: False
|
||||
forcedType: int
|
||||
- field: severity
|
||||
label: Severity
|
||||
required: True
|
||||
options:
|
||||
- critical
|
||||
- high
|
||||
- medium
|
||||
- low
|
||||
- info
|
||||
- field: clearedSeverity
|
||||
label: Cleared Severity
|
||||
required: False
|
||||
options:
|
||||
- none
|
||||
- critical
|
||||
- high
|
||||
- medium
|
||||
- low
|
||||
- info
|
||||
- field: enabled
|
||||
label: Enabled
|
||||
required: False
|
||||
forcedType: bool
|
||||
- field: note
|
||||
label: Note
|
||||
required: False
|
||||
multiline: True
|
||||
case:
|
||||
analyzerNodeId:
|
||||
description: The node ID on which analyzers will be executed.
|
||||
|
||||
@@ -9,9 +9,9 @@ export REDISCLI_AUTH={{ REDIS_PASS }}
|
||||
# if this script isn't already running
|
||||
if [[ ! "`pidof -x $(basename $0) -o %PPID`" ]]; then
|
||||
|
||||
UNPARSED=$(redis-cli llen logstash:unparsed | awk '{print $1}')
|
||||
PARSED=$(redis-cli llen logstash:parsed | awk '{print $1}')
|
||||
MEM_USED=$(redis-cli info memory | grep used_memory_peak_perc | cut -d ":" -f2 | sed "s/%//")
|
||||
UNPARSED=$(valkey-cli llen logstash:unparsed | awk '{print $1}')
|
||||
PARSED=$(valkey-cli llen logstash:parsed | awk '{print $1}')
|
||||
MEM_USED=$(valkey-cli info memory | grep used_memory_peak_perc | cut -d ":" -f2 | sed "s/%//")
|
||||
|
||||
echo "redisqueue unparsed=$UNPARSED,parsed=$PARSED,mem_used=$MEM_USED"
|
||||
|
||||
|
||||
Reference in new issue
Block a user