<?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: dnslookup: How to change host (indextime) using dnslookup? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/dnslookup-How-to-change-host-indextime-using-dnslookup/m-p/432015#M75612</link>
    <description>&lt;P&gt;sorry mate. forgot to give an example. Yes, this is from a file itself (which have been already collected by syslog)&lt;/P&gt;</description>
    <pubDate>Mon, 22 Oct 2018 19:11:17 GMT</pubDate>
    <dc:creator>koshyk</dc:creator>
    <dc:date>2018-10-22T19:11:17Z</dc:date>
    <item>
      <title>dnslookup: How to change host (indextime) using dnslookup?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/dnslookup-How-to-change-host-indextime-using-dnslookup/m-p/432013#M75610</link>
      <description>&lt;P&gt;We have few devices, which emit events as IP address.  So based on a sourcetype, can we change the host (hostname) of the entire sourcetype at indextime based on dnslookup?&lt;BR /&gt;
Any examples would be great.&lt;/P&gt;

&lt;P&gt;Edit: forgot to mention, the data exists in file sent by Heavy Forwarder which is captured in rsyslog&lt;/P&gt;

&lt;P&gt;Sample events . {The second field is the host-ip, but needed to do DNSlookup at indextime}&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2018-10-20T13:00:00+0500  10.22.222.333  [tag1]  somepayload1
2018-10-20T13:00:00+0500  10.22.222.334  [tag2]  somepayload2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2018 09:30:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/dnslookup-How-to-change-host-indextime-using-dnslookup/m-p/432013#M75610</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2018-10-22T09:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: dnslookup: How to change host (indextime) using dnslookup?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/dnslookup-How-to-change-host-indextime-using-dnslookup/m-p/432014#M75611</link>
      <description>&lt;P&gt;Hi @koshyk,&lt;/P&gt;

&lt;P&gt;As you didn't mention that how those devices are ingesting data into Splunk, if they are ingesting data directly in splunk you can look at below configuration for various Data Inputs in inputs.conf&lt;/P&gt;

&lt;P&gt;For example: For &lt;STRONG&gt;Splunk TCP&lt;/STRONG&gt; Input default configuration is &lt;CODE&gt;IP&lt;/CODE&gt; but for &lt;STRONG&gt;TCP&lt;/STRONG&gt; input default configuration is &lt;CODE&gt;dns&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[splunktcp://[&amp;lt;remote server&amp;gt;]:&amp;lt;port&amp;gt;]
connection_host = [ip|dns|none]
* For splunktcp, the 'host' or 'connection_host' will be used if the remote 
  Splunk instance does not set a host, or if the host is set to
  "&amp;lt;host&amp;gt;::&amp;lt;localhost&amp;gt;".
* "ip" sets the host to the IP address of the system sending the data.
* "dns" sets the host to the reverse DNS entry for the IP address of the system
  sending the data.
* "none" leaves the host as specified in inputs.conf, typically the splunk
  system hostname.
* Default: "ip".
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 22 Oct 2018 13:55:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/dnslookup-How-to-change-host-indextime-using-dnslookup/m-p/432014#M75611</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2018-10-22T13:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: dnslookup: How to change host (indextime) using dnslookup?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/dnslookup-How-to-change-host-indextime-using-dnslookup/m-p/432015#M75612</link>
      <description>&lt;P&gt;sorry mate. forgot to give an example. Yes, this is from a file itself (which have been already collected by syslog)&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2018 19:11:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/dnslookup-How-to-change-host-indextime-using-dnslookup/m-p/432015#M75612</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2018-10-22T19:11:17Z</dc:date>
    </item>
  </channel>
</rss>

