<?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 you replace ip address with name? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-replace-ip-address-with-name/m-p/134052#M27548</link>
    <description>&lt;P&gt;Hi Martin, thanks for the quick replay.  Perhaps it's the input/output fields where the issue lies.  The .csv file has 2 columns, clientip and clienthost.  I'm trying to get the contents of clienthost (which is the device name) to replace the search output field host (which is the ip address).  This is what's configured under Lookups&amp;gt; Automatic lookups&amp;gt; &lt;/P&gt;

&lt;P&gt;Lookup input fields&lt;BR /&gt;
clientip = host&lt;/P&gt;

&lt;P&gt;Lookup output fields&lt;BR /&gt;
clienthost = host&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jul 2015 16:13:24 GMT</pubDate>
    <dc:creator>papalmi</dc:creator>
    <dc:date>2015-07-21T16:13:24Z</dc:date>
    <item>
      <title>How do you replace ip address with name?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-replace-ip-address-with-name/m-p/134050#M27546</link>
      <description>&lt;P&gt;We're looking to substitute the host field, which is an IP address, with the device name that corresponds to the IP address.  I'm trying to do this using a .csv file and have the output automatically changed. I've resolved all the errors but I haven't been successful yet.  Help would be appreciated.  Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2015 16:03:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-replace-ip-address-with-name/m-p/134050#M27546</guid>
      <dc:creator>papalmi</dc:creator>
      <dc:date>2015-07-21T16:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do you replace ip address with name?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-replace-ip-address-with-name/m-p/134051#M27547</link>
      <description>&lt;P&gt;If you have a .csv like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ip,device
1.2.3.4,foo
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;then you can define that as a lookup table, and specify an automatic lookup for your sourcetype using ip as the input field and device as the output field - with potentially some renaming if the field isn't called ip in your data. Then Splunk will automagically add a device field to your events.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2015 16:05:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-replace-ip-address-with-name/m-p/134051#M27547</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2015-07-21T16:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do you replace ip address with name?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-replace-ip-address-with-name/m-p/134052#M27548</link>
      <description>&lt;P&gt;Hi Martin, thanks for the quick replay.  Perhaps it's the input/output fields where the issue lies.  The .csv file has 2 columns, clientip and clienthost.  I'm trying to get the contents of clienthost (which is the device name) to replace the search output field host (which is the ip address).  This is what's configured under Lookups&amp;gt; Automatic lookups&amp;gt; &lt;/P&gt;

&lt;P&gt;Lookup input fields&lt;BR /&gt;
clientip = host&lt;/P&gt;

&lt;P&gt;Lookup output fields&lt;BR /&gt;
clienthost = host&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2015 16:13:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-replace-ip-address-with-name/m-p/134052#M27548</guid>
      <dc:creator>papalmi</dc:creator>
      <dc:date>2015-07-21T16:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: How do you replace ip address with name?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-replace-ip-address-with-name/m-p/134053#M27549</link>
      <description>&lt;P&gt;Did you check the box to overwrite field values?&lt;/P&gt;

&lt;P&gt;Note, you may not be able to output to the same field name as your input.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2015 16:53:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-replace-ip-address-with-name/m-p/134053#M27549</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2015-07-21T16:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do you replace ip address with name?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-replace-ip-address-with-name/m-p/134054#M27550</link>
      <description>&lt;P&gt;Yes, overwrite is checked.  I'll try different field names and see what happens.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2015 17:08:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-replace-ip-address-with-name/m-p/134054#M27550</guid>
      <dc:creator>papalmi</dc:creator>
      <dc:date>2015-07-21T17:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do you replace ip address with name?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-replace-ip-address-with-name/m-p/134055#M27551</link>
      <description>&lt;P&gt;note that |inputlookup .csv does output the contents of the .csv file correctly&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2015 18:40:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-replace-ip-address-with-name/m-p/134055#M27551</guid>
      <dc:creator>papalmi</dc:creator>
      <dc:date>2015-07-21T18:40:14Z</dc:date>
    </item>
  </channel>
</rss>

