Getting Data In

Why is Docker Splunk UF sending logs with 2 different hostnames?

eddiemashayev
Path Finder

Docker-compose

splunkuf:
    image: splunk/universalforwarder:7.0.2
    network_mode: host
    environment:
      SPLUNK_START_ARGS: --accept-license --answer-yes
      SPLUNK_USER: root
      SPLUNK_CMD: install app /tmp/splunkclouduf.spl -auth admin:changeme
      SPLUNK_DEPLOYMENT_SERVER: XXXX.cloud.splunk.com:8089
      SPLUNK_ADD_1: monitor /docker/log
      SPLUNK_ADD_2: monitor /mnt/logs/postgres
    volumes:
      - /opt/splunk/etc
      - /opt/splunk/var
      - /var/log:/docker/log
      - $DATA_DIR/logs/postgres:/mnt/logs/postgres
      - $DATA_DIR/certs/splunkclouduf.spl:/tmp/splunkclouduf.spl

The container is running in Ubuntu instance. In Splunk cloud I can see 2 hostnames for the same instance:

  1. ubuntu
  2. The real hostname

Any reason why it happens?

0 Karma
1 Solution

eddiemashayev
Path Finder

Removing TRANSFORMS = syslog-host property from syslog source type in Splunk Cloud solved the issue

View solution in original post

0 Karma

eddiemashayev
Path Finder

Removing TRANSFORMS = syslog-host property from syslog source type in Splunk Cloud solved the issue

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...