<?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: Hostname macro in inputs.conf in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Hostname-macro-in-inputs-conf/m-p/466589#M80386</link>
    <description>&lt;P&gt;Ok, to answer my own question...&lt;BR /&gt;
In contrast to what I assumed, &lt;STRONG&gt;$decideOnStartup&lt;/STRONG&gt; is resolved to the real hostname and not the referenced address of the input like the default for host.&lt;/P&gt;</description>
    <pubDate>Tue, 17 Dec 2019 14:34:06 GMT</pubDate>
    <dc:creator>afx</dc:creator>
    <dc:date>2019-12-17T14:34:06Z</dc:date>
    <item>
      <title>Hostname macro in inputs.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Hostname-macro-in-inputs-conf/m-p/466588#M80385</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I have a Linux based application server that exists in two copies on xhostA and xhostB.&lt;BR /&gt;
I am getting their syslog output via a localhost syslog interface into the UF which is installed on those hosts.&lt;/P&gt;

&lt;P&gt;I do not want to push individual inputs.conf files. So how to I get the appropriate host name for the syslog input?&lt;BR /&gt;
If I leave host emtpy, I get 127.0.0.1 which is not helpful. When I set the hostname, it then is identical for both systems.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[udp://127.0.0.1:8514]
connection_host = 127.0.0.1
sourcetype=linux_secure
no_appending_timestamp = true
index= xauth
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any ideas on how to rectify this easily?&lt;BR /&gt;
I assume that&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host=$decideOnStartup
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;would just deliver 127.0.0.1 as leaving host empty results in this.&lt;/P&gt;

&lt;P&gt;thx&lt;BR /&gt;
afx&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2019 12:55:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Hostname-macro-in-inputs-conf/m-p/466588#M80385</guid>
      <dc:creator>afx</dc:creator>
      <dc:date>2019-12-17T12:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Hostname macro in inputs.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Hostname-macro-in-inputs-conf/m-p/466589#M80386</link>
      <description>&lt;P&gt;Ok, to answer my own question...&lt;BR /&gt;
In contrast to what I assumed, &lt;STRONG&gt;$decideOnStartup&lt;/STRONG&gt; is resolved to the real hostname and not the referenced address of the input like the default for host.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2019 14:34:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Hostname-macro-in-inputs-conf/m-p/466589#M80386</guid>
      <dc:creator>afx</dc:creator>
      <dc:date>2019-12-17T14:34:06Z</dc:date>
    </item>
  </channel>
</rss>

