mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
Common Module - Fix Telegraf ES input for nodes
This commit is contained in:
@@ -288,6 +288,7 @@ dashboard-master:
|
|||||||
- defaults:
|
- defaults:
|
||||||
SERVERNAME: {{ SN }}
|
SERVERNAME: {{ SN }}
|
||||||
MANINT: {{ SNDATA.manint }}
|
MANINT: {{ SNDATA.manint }}
|
||||||
|
MONINT: {{ SNDATA.manint }}
|
||||||
CPUS: {{ SNDATA.totalcpus }}
|
CPUS: {{ SNDATA.totalcpus }}
|
||||||
UID: {{ SNDATA.guid }}
|
UID: {{ SNDATA.guid }}
|
||||||
|
|
||||||
@@ -325,6 +326,7 @@ dashboard-{{ SN }}:
|
|||||||
- defaults:
|
- defaults:
|
||||||
SERVERNAME: {{ SN }}
|
SERVERNAME: {{ SN }}
|
||||||
MANINT: {{ SNDATA.manint }}
|
MANINT: {{ SNDATA.manint }}
|
||||||
|
MONINT: {{ SNDATA.manint }}
|
||||||
CPUS: {{ SNDATA.totalcpus }}
|
CPUS: {{ SNDATA.totalcpus }}
|
||||||
UID: {{ SNDATA.guid }}
|
UID: {{ SNDATA.guid }}
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,10 @@
|
|||||||
# Environment variables can be used anywhere in this config file, simply prepend
|
# Environment variables can be used anywhere in this config file, simply prepend
|
||||||
# them with $. For strings the variable must be within quotes (ie, "$STR_VAR"),
|
# them with $. For strings the variable must be within quotes (ie, "$STR_VAR"),
|
||||||
# for numbers and booleans they should be plain (ie, $INT_VAR, $BOOL_VAR)
|
# for numbers and booleans they should be plain (ie, $INT_VAR, $BOOL_VAR)
|
||||||
|
|
||||||
{%- set MASTER = grains['master'] %}
|
{%- set MASTER = grains['master'] %}
|
||||||
|
{% set NODEIP = salt['pillar.get']('node:mainip', '') %}
|
||||||
|
|
||||||
|
|
||||||
# Global tags can be specified here in key="value" format.
|
# Global tags can be specified here in key="value" format.
|
||||||
[global_tags]
|
[global_tags]
|
||||||
@@ -571,6 +574,11 @@
|
|||||||
# # servers = ["http://user:pass@localhost:9200"]
|
# # servers = ["http://user:pass@localhost:9200"]
|
||||||
servers = ["http://{{ MASTER }}:9200"]
|
servers = ["http://{{ MASTER }}:9200"]
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if grains['role'] == 'so-node'}
|
||||||
|
[[inputs.elasticsearch]]
|
||||||
|
servers = ["http://{{ NODEIP }}:9200"]
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
#
|
#
|
||||||
# ## Timeout for HTTP requests to the elastic search server(s)
|
# ## Timeout for HTTP requests to the elastic search server(s)
|
||||||
# http_timeout = "5s"
|
# http_timeout = "5s"
|
||||||
|
|||||||
Reference in New Issue
Block a user