<?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: How do I force IP address for host property instead of hostname in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-force-IP-address-for-host-property-instead-of-hostname/m-p/108015#M22715</link>
    <description>&lt;P&gt;I'd expect that this would work to send all traffic as 172.18.1.1 but hard coding a value isn't viable for me.  &lt;/P&gt;

&lt;P&gt;The Splunk forwarders are running in AWS on EC2 instances.  I may have N number of these E2C instances running which all have been started from the same image.  With this solution I'd get all nodes reporting as 172.18.1.1. &lt;/P&gt;

&lt;P&gt;Thanks for the response though.  Any other thoughts?&lt;/P&gt;</description>
    <pubDate>Fri, 01 Feb 2013 18:55:00 GMT</pubDate>
    <dc:creator>tstclair</dc:creator>
    <dc:date>2013-02-01T18:55:00Z</dc:date>
    <item>
      <title>How do I force IP address for host property instead of hostname</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-force-IP-address-for-host-property-instead-of-hostname/m-p/108013#M22713</link>
      <description>&lt;P&gt;In the inputs.conf file you have the option to specific a 'host' property.  Per the documentation.&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;If not set explicitly, this defaults&lt;BR /&gt;
to the IP address or fully qualified&lt;BR /&gt;
domain name of the host where the data&lt;BR /&gt;
originated.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;All my traffic is coming in under the system hostname but I want to force this to be the IP address.  I've looked and looked and can't seem to find the answer, How do I set host = IP?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2013 17:51:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-force-IP-address-for-host-property-instead-of-hostname/m-p/108013#M22713</guid>
      <dc:creator>tstclair</dc:creator>
      <dc:date>2013-02-01T17:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do I force IP address for host property instead of hostname</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-force-IP-address-for-host-property-instead-of-hostname/m-p/108014#M22714</link>
      <description>&lt;P&gt;I haven't tried it, but I don't see why you couldn't set your host parameter to the IP address on each Splunk forwarder:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;etc/local/inputs.conf
=====================
[default]
host = 172.18.1.1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;for instance.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2013 18:43:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-force-IP-address-for-host-property-instead-of-hostname/m-p/108014#M22714</guid>
      <dc:creator>jeff</dc:creator>
      <dc:date>2013-02-01T18:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: How do I force IP address for host property instead of hostname</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-force-IP-address-for-host-property-instead-of-hostname/m-p/108015#M22715</link>
      <description>&lt;P&gt;I'd expect that this would work to send all traffic as 172.18.1.1 but hard coding a value isn't viable for me.  &lt;/P&gt;

&lt;P&gt;The Splunk forwarders are running in AWS on EC2 instances.  I may have N number of these E2C instances running which all have been started from the same image.  With this solution I'd get all nodes reporting as 172.18.1.1. &lt;/P&gt;

&lt;P&gt;Thanks for the response though.  Any other thoughts?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2013 18:55:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-force-IP-address-for-host-property-instead-of-hostname/m-p/108015#M22715</guid>
      <dc:creator>tstclair</dc:creator>
      <dc:date>2013-02-01T18:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: How do I force IP address for host property instead of hostname</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-force-IP-address-for-host-property-instead-of-hostname/m-p/108016#M22716</link>
      <description>&lt;P&gt;Not any great ones... not sure if the parameter may take an environment variable? Might be worth trying- have a script set an IP variable, then set &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host=$IP
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;on system boot before running Splunk. I don't have a lot of confidence in this, but might be worth a shot.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2013 22:19:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-force-IP-address-for-host-property-instead-of-hostname/m-p/108016#M22716</guid>
      <dc:creator>jeff</dc:creator>
      <dc:date>2013-02-01T22:19:32Z</dc:date>
    </item>
  </channel>
</rss>

