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
@@ -41,7 +41,6 @@
|
|||||||
'logstash.node': 'logstash.stack_monitoring.node',
|
'logstash.node': 'logstash.stack_monitoring.node',
|
||||||
'logstash.node_cel': 'logstash.node',
|
'logstash.node_cel': 'logstash.node',
|
||||||
'logstash.node_stats': 'logstash.stack_monitoring.node_stats',
|
'logstash.node_stats': 'logstash.stack_monitoring.node_stats',
|
||||||
'mqtt.traces': 'traces-mqtt.traces',
|
|
||||||
'synthetics.browser': 'synthetics-browser',
|
'synthetics.browser': 'synthetics-browser',
|
||||||
'synthetics.browser_network': 'synthetics-browser.network',
|
'synthetics.browser_network': 'synthetics-browser.network',
|
||||||
'synthetics.browser_screenshot': 'synthetics-browser.screenshot',
|
'synthetics.browser_screenshot': 'synthetics-browser.screenshot',
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
elasticsearch:
|
elasticsearch:
|
||||||
enabled: false
|
enabled: false
|
||||||
esheap: '600m'
|
esheap: '600m'
|
||||||
version: 9.4.10
|
version: 9.4.8
|
||||||
index_clean: true
|
index_clean: true
|
||||||
data_retention_method: DLM
|
data_retention_method: DLM
|
||||||
vm:
|
vm:
|
||||||
|
|||||||
@@ -8,10 +8,10 @@ influxdb:
|
|||||||
flux-log-enabled: false
|
flux-log-enabled: false
|
||||||
hardening-enabled: true
|
hardening-enabled: true
|
||||||
http-bind-address: :8086
|
http-bind-address: :8086
|
||||||
http-idle-timeout: 0s
|
http-idle-timeout: 0
|
||||||
http-read-header-timeout: 10s
|
http-read-header-timeout: 10s
|
||||||
http-read-timeout: 0s
|
http-read-timeout: 0
|
||||||
http-write-timeout: 0s
|
http-write-timeout: 0
|
||||||
influxql-max-select-buckets: 0
|
influxql-max-select-buckets: 0
|
||||||
influxql-max-select-point: 0
|
influxql-max-select-point: 0
|
||||||
influxql-max-select-series: 0
|
influxql-max-select-series: 0
|
||||||
|
|||||||
@@ -42,17 +42,17 @@ influxdb:
|
|||||||
advanced: True
|
advanced: True
|
||||||
helpLink: influxdb
|
helpLink: influxdb
|
||||||
http-idle-timeout:
|
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
|
global: True
|
||||||
advanced: True
|
advanced: True
|
||||||
helpLink: influxdb
|
helpLink: influxdb
|
||||||
http-read-header-timeout:
|
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
|
global: True
|
||||||
advanced: True
|
advanced: True
|
||||||
helpLink: influxdb
|
helpLink: influxdb
|
||||||
http-read-timeout:
|
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
|
global: True
|
||||||
advanced: True
|
advanced: True
|
||||||
helpLink: influxdb
|
helpLink: influxdb
|
||||||
|
|||||||
@@ -128,7 +128,7 @@ lookup_org_id_with_wait() {
|
|||||||
wait=10
|
wait=10
|
||||||
while [[ $attempts -lt $max_attempts ]]; do
|
while [[ $attempts -lt $max_attempts ]]; do
|
||||||
response=$(request orgs?org=Security+Onion)
|
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
|
if [[ -z $oid ]]; then
|
||||||
attempts=$((attempts+1))
|
attempts=$((attempts+1))
|
||||||
log "Server does not appear to be running or fully initialized - will try again in $wait seconds ($attempts / $max_attempts)"
|
log "Server does not appear to be running or fully initialized - will try again in $wait seconds ($attempts / $max_attempts)"
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ kibana:
|
|||||||
- default
|
- default
|
||||||
- file
|
- file
|
||||||
migrations:
|
migrations:
|
||||||
discardCorruptObjects: "9.4.10"
|
discardCorruptObjects: "9.4.8"
|
||||||
telemetry:
|
telemetry:
|
||||||
enabled: False
|
enabled: False
|
||||||
xpack:
|
xpack:
|
||||||
|
|||||||
@@ -1108,6 +1108,9 @@ post_to_3.3.0() {
|
|||||||
|
|
||||||
### 3.4.0 Scripts ###
|
### 3.4.0 Scripts ###
|
||||||
up_to_3.4.0() {
|
up_to_3.4.0() {
|
||||||
|
# download 9.4.8 elastic agent packages
|
||||||
|
determine_elastic_agent_upgrade
|
||||||
|
|
||||||
set_soauth_range
|
set_soauth_range
|
||||||
|
|
||||||
echo "Removing so-kratos, so-hydra and so-soc so they are recreated on the soauth network."
|
echo "Removing so-kratos, so-hydra and so-soc so they are recreated on the soauth network."
|
||||||
@@ -1185,6 +1188,10 @@ valid_soauth_range() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
post_to_3.4.0() {
|
post_to_3.4.0() {
|
||||||
|
# Generate 9.4.8 elastic agent installers
|
||||||
|
echo "Regenerating Elastic Agent Installers"
|
||||||
|
/sbin/so-elastic-agent-gen-installers
|
||||||
|
|
||||||
for idx in "metrics-logstash.node-default" "metrics-logstash.stack_monitoring.node-default"; do
|
for idx in "metrics-logstash.node-default" "metrics-logstash.stack_monitoring.node-default"; do
|
||||||
rollover_index "$idx"
|
rollover_index "$idx"
|
||||||
done
|
done
|
||||||
@@ -1214,9 +1221,6 @@ add_detection_runtime_fields() {
|
|||||||
|
|
||||||
### 3.5.0 Scripts ###
|
### 3.5.0 Scripts ###
|
||||||
up_to_3.5.0() {
|
up_to_3.5.0() {
|
||||||
# download 9.4.10 elastic agent packages
|
|
||||||
determine_elastic_agent_upgrade
|
|
||||||
|
|
||||||
remove_localrules_portgroup
|
remove_localrules_portgroup
|
||||||
|
|
||||||
INSTALLEDVERSION=3.5.0
|
INSTALLEDVERSION=3.5.0
|
||||||
@@ -1235,10 +1239,6 @@ remove_localrules_portgroup() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
post_to_3.5.0() {
|
post_to_3.5.0() {
|
||||||
# Generate 9.4.10 elastic agent installers
|
|
||||||
echo "Regenerating Elastic Agent Installers"
|
|
||||||
/sbin/so-elastic-agent-gen-installers
|
|
||||||
|
|
||||||
telegraf_repair
|
telegraf_repair
|
||||||
|
|
||||||
rollover_index "logs-detections.alerts-so"
|
rollover_index "logs-detections.alerts-so"
|
||||||
@@ -1519,11 +1519,10 @@ verify_es_version_compatibility() {
|
|||||||
["8.18.4"]="8.18.6 8.18.8 9.0.8"
|
["8.18.4"]="8.18.6 8.18.8 9.0.8"
|
||||||
["8.18.6"]="8.18.8 9.0.8"
|
["8.18.6"]="8.18.8 9.0.8"
|
||||||
["8.18.8"]="9.0.8"
|
["8.18.8"]="9.0.8"
|
||||||
["9.0.8"]="9.3.3 9.3.7 9.4.5 9.4.8 9.4.10"
|
["9.0.8"]="9.3.3 9.3.7 9.4.5 9.4.8"
|
||||||
["9.3.3"]="9.3.7 9.4.5 9.4.8 9.4.10"
|
["9.3.3"]="9.3.7 9.4.5 9.4.8"
|
||||||
["9.3.7"]="9.4.5 9.4.8 9.4.10"
|
["9.3.7"]="9.4.5 9.4.8"
|
||||||
["9.4.5"]="9.4.8 9.4.10"
|
["9.4.5"]="9.4.8"
|
||||||
["9.4.8"]="9.4.10"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# Elasticsearch MUST upgrade through these versions
|
# Elasticsearch MUST upgrade through these versions
|
||||||
|
|||||||
@@ -19,6 +19,8 @@ so-redis:
|
|||||||
docker_container.running:
|
docker_container.running:
|
||||||
- image: {{ GLOBALS.registry_host }}:5000/{{ GLOBALS.image_repo }}/so-redis:{{ GLOBALS.so_version }}
|
- image: {{ GLOBALS.registry_host }}:5000/{{ GLOBALS.image_repo }}/so-redis:{{ GLOBALS.so_version }}
|
||||||
- restart_policy: unless-stopped
|
- restart_policy: unless-stopped
|
||||||
|
- shutdown_timeout: 180
|
||||||
|
- stop_timeout: 180
|
||||||
- hostname: so-redis
|
- hostname: so-redis
|
||||||
- user: socore
|
- user: socore
|
||||||
- networks:
|
- networks:
|
||||||
@@ -60,7 +62,7 @@ so-redis:
|
|||||||
- {{ ULIMIT.name }}={{ ULIMIT.soft }}:{{ ULIMIT.hard }}
|
- {{ ULIMIT.name }}={{ ULIMIT.soft }}:{{ ULIMIT.hard }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
- entrypoint: "redis-server /usr/local/etc/redis/redis.conf"
|
- entrypoint: "redis-server /usr/local/etc/redis/redis.conf --rdb-version-check relaxed"
|
||||||
- watch:
|
- watch:
|
||||||
- cmd: ca_trust_extract
|
- cmd: ca_trust_extract
|
||||||
- file: trusttheca
|
- file: trusttheca
|
||||||
|
|||||||
@@ -9,9 +9,9 @@ export REDISCLI_AUTH={{ REDIS_PASS }}
|
|||||||
# if this script isn't already running
|
# if this script isn't already running
|
||||||
if [[ ! "`pidof -x $(basename $0) -o %PPID`" ]]; then
|
if [[ ! "`pidof -x $(basename $0) -o %PPID`" ]]; then
|
||||||
|
|
||||||
UNPARSED=$(redis-cli llen logstash:unparsed | awk '{print $1}')
|
UNPARSED=$(valkey-cli llen logstash:unparsed | awk '{print $1}')
|
||||||
PARSED=$(redis-cli llen logstash:parsed | awk '{print $1}')
|
PARSED=$(valkey-cli llen logstash:parsed | awk '{print $1}')
|
||||||
MEM_USED=$(redis-cli info memory | grep used_memory_peak_perc | cut -d ":" -f2 | sed "s/%//")
|
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"
|
echo "redisqueue unparsed=$UNPARSED,parsed=$PARSED,mem_used=$MEM_USED"
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user