mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 17:52:46 +01:00
redefine measurements
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{% set measurements = salt['cmd.shell']('docker exec -t so-influxdb influx -format json -ssl -unsafeSsl -database telegraf -execute "show measurements" | jq -r .results[0].series[0].values[][0]') %}
|
||||
{% set measurements = salt['cmd.shell']('docker exec -t so-influxdb influx -format json -ssl -unsafeSsl -database telegraf -execute "show measurements" 2> /root/measurement_query.log | jq -r .results[0].series[0].values[]?[0] 2>> /root/measurement_query.log') %}
|
||||
|
||||
influxdb:
|
||||
retention_policies:
|
||||
@@ -13,7 +13,7 @@ influxdb:
|
||||
downsample:
|
||||
so_long_term:
|
||||
resolution: 5m
|
||||
{% if 'jq: error' not in measurements and 'Error response from daemon' not in measurements and 'parse error:' not in measurements and measurements|length > 0 %}
|
||||
{% if measurements|length > 0 %}
|
||||
measurements:
|
||||
{% for measurement in measurements.splitlines() %}
|
||||
- {{ measurement }}
|
||||
|
||||
Reference in New Issue
Block a user