<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Why is my Splunk universal forwarder monitor hostname key not working? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-Splunk-universal-forwarder-monitor-hostname-key-not/m-p/227432#M44360</link>
    <description>&lt;P&gt;Are you think it's not a bug ?&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2015 10:28:26 GMT</pubDate>
    <dc:creator>vgolof</dc:creator>
    <dc:date>2015-09-30T10:28:26Z</dc:date>
    <item>
      <title>Why is my Splunk universal forwarder monitor hostname key not working?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-Splunk-universal-forwarder-monitor-hostname-key-not/m-p/227424#M44352</link>
      <description>&lt;P&gt;Splunk Forwarder monitor hostname key is not working.&lt;/P&gt;

&lt;P&gt;Amazon Linux AMI release 2015.03 3.14.48-33.39.amzn1.x86_64&lt;/P&gt;

&lt;P&gt;Splunk Universal Forwarder 6.2.5 (build 272645)&lt;/P&gt;

&lt;P&gt;Forwards:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;input-prd-p-t865bwklrqxn.cloud.splunk.com:9997 (ssl)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want to monitor log files from one host with Splunk Light.&lt;BR /&gt;
Used command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/opt/splunkforwarder/bin/splunk add monitor /var/log/messages -hostname &amp;lt;node hostname&amp;gt;
/opt/splunkforwarder/bin/splunk add monitor /var/log/audit/audit.log -hostname &amp;lt;node hostname&amp;gt;
/opt/splunkforwarder/bin/splunk add monitor /var/log/docker -hostname &amp;lt;node hostname&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But there are no hostnames when I check:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/opt/splunkforwarder/bin/splunk list monitor
Monitored Files:
        /var/log/audit/audit.log
        /var/log/docker
        /var/log/messages
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And as result i got &lt;STRONG&gt;3(!) different Hosts&lt;/STRONG&gt; on my cloud.splunk.com&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ip-10-1-0-82        201 9/17/15 9:36:08.000 AM
_node hostname_     14,843  9/17/15 9:44:03.000 AM
_local hostname_        39  9/14/15 1:42:59.000 PM
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;What is the solution to this problem?&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2015 11:22:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-Splunk-universal-forwarder-monitor-hostname-key-not/m-p/227424#M44352</guid>
      <dc:creator>vgolof</dc:creator>
      <dc:date>2015-09-17T11:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my Splunk universal forwarder monitor hostname key not working?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-Splunk-universal-forwarder-monitor-hostname-key-not/m-p/227425#M44353</link>
      <description>&lt;P&gt;You shouldn't have to specify hostname in the command.  Splunk's default is to use the system name.  You can use btool to debug your configs.  This command below will also show which apps each setting is coming from.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$SPLUNK_HOME/bin/splunk cmd btool --debug inputs list
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 17 Sep 2015 16:54:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-Splunk-universal-forwarder-monitor-hostname-key-not/m-p/227425#M44353</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2015-09-17T16:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my Splunk universal forwarder monitor hostname key not working?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-Splunk-universal-forwarder-monitor-hostname-key-not/m-p/227426#M44354</link>
      <description>&lt;P&gt;&amp;lt; hostname &amp;gt; - for example, in config used real hostname.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Ok, output:&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...
/opt/splunkforwarder/etc/apps/SplunkUniversalForwarder/default/inputs.conf [monitor:///var/log/cron]
/opt/splunkforwarder/etc/system/default/inputs.conf _rcvbuf = 1572864
/opt/splunkforwarder/etc/apps/SplunkUniversalForwarder/default/inputs.conf disabled = false
/opt/splunkforwarder/etc/apps/SplunkUniversalForwarder/default/inputs.conf host = vastest3.&amp;lt;hostname&amp;gt;
/opt/splunkforwarder/etc/apps/SplunkUniversalForwarder/default/inputs.conf ignoreOlderThan = 14d
/opt/splunkforwarder/etc/system/default/inputs.conf index = default
...
/opt/splunkforwarder/etc/system/local/inputs.conf host = vastest.&amp;lt;hostname&amp;gt;
opt/splunkforwarder/etc/apps/search/local/inputs.conf host = &amp;lt;hostname&amp;gt;
...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;In logs&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host = ip-10-1-0-41 source = /var/log/cron sourcetype = syslog
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And i think it is worst way to use something like this for every new log record. &lt;BR /&gt;
&lt;A href="http://answers.splunk.com/answers/23507/why-is-host-localhost-when-inputs-conf-set-up-to-use-custom-name.html"&gt;http://answers.splunk.com/answers/23507/why-is-host-localhost-when-inputs-conf-set-up-to-use-custom-name.html&lt;/A&gt;&lt;/P&gt;

&lt;H2&gt;&lt;STRONG&gt;How can I override host for ALL LOGS on first install ?&lt;/STRONG&gt;&lt;/H2&gt;

&lt;P&gt;&lt;STRONG&gt;Ok... let see props.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[linux_messages_syslog]
TRANSFORMS = syslog-host
...

[syslog]
TRANSFORMS = syslog-host
...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Created transforms.conf:&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[syslog-host]
REGEX = vastest4.&amp;lt;hostname&amp;gt;
DEST_KEY = MetaData:Host
FORMAT = host::$1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;not work too:&lt;BR /&gt;
REGEX = \s(\w*)$&lt;BR /&gt;
DEFAULT_VALUE = vastest5.qdoba-mera.seed1)&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Result:&lt;/STRONG&gt;&lt;BR /&gt;
host = ip-10-1-0-41 source = /var/log/cron sourcetype = syslog&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;That next ?&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;p. s. And how can I delete "bad" Hosts events from *.cloud.splunk.com ?&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2015 13:13:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-Splunk-universal-forwarder-monitor-hostname-key-not/m-p/227426#M44354</guid>
      <dc:creator>vgolof</dc:creator>
      <dc:date>2015-09-18T13:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my Splunk universal forwarder monitor hostname key not working?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-Splunk-universal-forwarder-monitor-hostname-key-not/m-p/227427#M44355</link>
      <description>&lt;P&gt;Probably need to contact Support.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2015 17:31:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-Splunk-universal-forwarder-monitor-hostname-key-not/m-p/227427#M44355</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2015-09-18T17:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my Splunk universal forwarder monitor hostname key not working?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-Splunk-universal-forwarder-monitor-hostname-key-not/m-p/227428#M44356</link>
      <description>&lt;P&gt;I submitted CASE [271586] 17.09.15, but don't got any answers and can't find any link of case for track result.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2015 18:16:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-Splunk-universal-forwarder-monitor-hostname-key-not/m-p/227428#M44356</guid>
      <dc:creator>vgolof</dc:creator>
      <dc:date>2015-09-29T18:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my Splunk universal forwarder monitor hostname key not working?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-Splunk-universal-forwarder-monitor-hostname-key-not/m-p/227429#M44357</link>
      <description>&lt;P&gt;@vgolof: i looked up your case--you do not appear to have an active Support entitlement, which is why your case was not responded to. you must have a paid Support plan to receive a response from our Support team.  i'll see if anyone has a minute to look at this. &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2015 19:24:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-Splunk-universal-forwarder-monitor-hostname-key-not/m-p/227429#M44357</guid>
      <dc:creator>piebob</dc:creator>
      <dc:date>2015-09-29T19:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my Splunk universal forwarder monitor hostname key not working?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-Splunk-universal-forwarder-monitor-hostname-key-not/m-p/227430#M44358</link>
      <description>&lt;P&gt;Couple of questions:&lt;BR /&gt;
  Are you running any applications in the cloud?&lt;BR /&gt;
 Do you have any  field extractions that may be overwriting the hostname?&lt;/P&gt;

&lt;P&gt;While you are setting the hostname at input time, you can overwrite it when it gets to the indexer..&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2015 19:29:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-Splunk-universal-forwarder-monitor-hostname-key-not/m-p/227430#M44358</guid>
      <dc:creator>bosburn_splunk</dc:creator>
      <dc:date>2015-09-29T19:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my Splunk universal forwarder monitor hostname key not working?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-Splunk-universal-forwarder-monitor-hostname-key-not/m-p/227431#M44359</link>
      <description>&lt;P&gt;No custom apps, jobs, filters or field extractions.&lt;BR /&gt;
Field extractions and Field transformations in cloud.splunk.com is stored by defaults.&lt;/P&gt;

&lt;P&gt;I just install splunkforwarder, add you cluster:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/opt/splunkforwarder/bin/splunk install app /opt/splunkforwarder/etc/splunkclouduf.spl -auth admin:changeme
/opt/splunkforwarder/bin/splunk restart
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;splunkclouduf.spl from &lt;A href="https://.cloud.splunk.com/en-US/app/search/splunkclouduf" target="test_blank"&gt;https://.cloud.splunk.com/en-US/app/search/splunkclouduf&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;add 3 logs (see topic): &lt;/P&gt;

&lt;P&gt;/var/log/audit/audit.log&lt;BR /&gt;
/var/log/docker&lt;BR /&gt;
/var/log/messages&lt;/P&gt;

&lt;P&gt;And change some hosts in a disorderly heap of configs for tests.&lt;/P&gt;

&lt;P&gt;All what i want - have a same host field or something other field &lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2015 10:21:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-Splunk-universal-forwarder-monitor-hostname-key-not/m-p/227431#M44359</guid>
      <dc:creator>vgolof</dc:creator>
      <dc:date>2015-09-30T10:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my Splunk universal forwarder monitor hostname key not working?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-Splunk-universal-forwarder-monitor-hostname-key-not/m-p/227432#M44360</link>
      <description>&lt;P&gt;Are you think it's not a bug ?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2015 10:28:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-Splunk-universal-forwarder-monitor-hostname-key-not/m-p/227432#M44360</guid>
      <dc:creator>vgolof</dc:creator>
      <dc:date>2015-09-30T10:28:26Z</dc:date>
    </item>
  </channel>
</rss>

