mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 01:32:47 +01:00
Merge pull request #12820 from Security-Onion-Solutions/dougburks-patch-1
FIX: Elastic retention setting not being honored when manager hostname is a subset of search node hostname #12819
This commit is contained in:
@@ -40,7 +40,7 @@ fi
|
|||||||
|
|
||||||
# Iterate through the output of _cat/allocation for each node in the cluster to determine the total available space
|
# Iterate through the output of _cat/allocation for each node in the cluster to determine the total available space
|
||||||
{% if GLOBALS.role == 'so-manager' %}
|
{% if GLOBALS.role == 'so-manager' %}
|
||||||
for i in $(/usr/sbin/so-elasticsearch-query _cat/allocation | grep -v {{ GLOBALS.manager }} | awk '{print $5}'); do
|
for i in $(/usr/sbin/so-elasticsearch-query _cat/allocation | grep -v "{{ GLOBALS.manager }}$" | awk '{print $5}'); do
|
||||||
{% else %}
|
{% else %}
|
||||||
for i in $(/usr/sbin/so-elasticsearch-query _cat/allocation | awk '{print $5}'); do
|
for i in $(/usr/sbin/so-elasticsearch-query _cat/allocation | awk '{print $5}'); do
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ TOTAL_USED_SPACE=0
|
|||||||
# Iterate through the output of _cat/allocation for each node in the cluster to determine the total used space
|
# Iterate through the output of _cat/allocation for each node in the cluster to determine the total used space
|
||||||
{% if GLOBALS.role == 'so-manager' %}
|
{% if GLOBALS.role == 'so-manager' %}
|
||||||
# Get total disk space - disk.total
|
# Get total disk space - disk.total
|
||||||
for i in $(/usr/sbin/so-elasticsearch-query _cat/allocation | grep -v {{ GLOBALS.manager }} | awk '{print $3}'); do
|
for i in $(/usr/sbin/so-elasticsearch-query _cat/allocation | grep -v "{{ GLOBALS.manager }}$" | awk '{print $3}'); do
|
||||||
{% else %}
|
{% else %}
|
||||||
# Get disk space taken up by indices - disk.indices
|
# Get disk space taken up by indices - disk.indices
|
||||||
for i in $(/usr/sbin/so-elasticsearch-query _cat/allocation | awk '{print $2}'); do
|
for i in $(/usr/sbin/so-elasticsearch-query _cat/allocation | awk '{print $2}'); do
|
||||||
|
|||||||
Reference in New Issue
Block a user