Merge pull request #427 from Security-Onion-Solutions/quickfix/hostnames

ensure name uniformity for elascticsearch and telegraf/grafana
This commit is contained in:
Josh Patterson
2020-03-17 09:19:27 -04:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -80,7 +80,7 @@
logfile = "/var/log/telegraf/telegraf.log"
## Override default hostname, if empty use os.Hostname()
hostname = "{{ grains.id }}"
hostname = "{{ grains.host }}"
## If set to true, do no set the "host" tag in the telegraf agent.
omit_hostname = false

View File

@@ -28,4 +28,4 @@ fi
echo "Applying cross cluster search config..."
curl -s -XPUT http://{{ ES }}:9200/_cluster/settings \
-H 'Content-Type: application/json' \
-d "{\"persistent\": {\"search\": {\"remote\": {\"{{ grains.id }}\": {\"seeds\": [\"127.0.0.1:9300\"]}}}}}"
-d "{\"persistent\": {\"search\": {\"remote\": {\"{{ grains.host }}\": {\"seeds\": [\"127.0.0.1:9300\"]}}}}}"