mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-04-27 06:57:50 +02:00
Merge pull request #15447 from Security-Onion-Solutions/reyesj2-patch-13
use logstash merged values for logstash metric collection
This commit is contained in:
@@ -7,6 +7,7 @@
|
|||||||
{% if sls.split('.')[0] in allowed_states %}
|
{% if sls.split('.')[0] in allowed_states %}
|
||||||
{% from 'vars/globals.map.jinja' import GLOBALS %}
|
{% from 'vars/globals.map.jinja' import GLOBALS %}
|
||||||
{% from 'telegraf/map.jinja' import TELEGRAFMERGED %}
|
{% from 'telegraf/map.jinja' import TELEGRAFMERGED %}
|
||||||
|
{% from 'logstash/map.jinja' import LOGSTASH_MERGED %}
|
||||||
|
|
||||||
# add Telegraf to monitor all the things
|
# add Telegraf to monitor all the things
|
||||||
tgraflogdir:
|
tgraflogdir:
|
||||||
@@ -89,6 +90,7 @@ tgrafconf:
|
|||||||
- defaults:
|
- defaults:
|
||||||
GLOBALS: {{ GLOBALS }}
|
GLOBALS: {{ GLOBALS }}
|
||||||
TELEGRAFMERGED: {{ TELEGRAFMERGED }}
|
TELEGRAFMERGED: {{ TELEGRAFMERGED }}
|
||||||
|
LOGSTASH_MERGED: {{ LOGSTASH_MERGED }}
|
||||||
|
|
||||||
# this file will be read by telegraf to send node details (management interface, monitor interface, etc)
|
# this file will be read by telegraf to send node details (management interface, monitor interface, etc)
|
||||||
# into influx
|
# into influx
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
{%- set UNIQUEID = salt['pillar.get']('sensor:uniqueid', '') %}
|
{%- set UNIQUEID = salt['pillar.get']('sensor:uniqueid', '') %}
|
||||||
{%- set ZEEK_ENABLED = salt['pillar.get']('zeek:enabled', True) %}
|
{%- set ZEEK_ENABLED = salt['pillar.get']('zeek:enabled', True) %}
|
||||||
{%- set MDENGINE = GLOBALS.md_engine %}
|
{%- set MDENGINE = GLOBALS.md_engine %}
|
||||||
{%- set LOGSTASH_ENABLED = salt['pillar.get']('logstash:enabled', False) %}
|
{%- set LOGSTASH_ENABLED = LOGSTASH_MERGED.enabled %}
|
||||||
# Global tags can be specified here in key="value" format.
|
# Global tags can be specified here in key="value" format.
|
||||||
[global_tags]
|
[global_tags]
|
||||||
role = "{{ GLOBALS.role.split('-') | last }}"
|
role = "{{ GLOBALS.role.split('-') | last }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user