<?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: If I have an IP address from a search, how do I look for its hostname from a lookup table? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/If-I-have-an-IP-address-from-a-search-how-do-I-look-for-its/m-p/583811#M203309</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/32539"&gt;@np_hwp&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated by all the Contributors &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 05 Feb 2022 07:25:36 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2022-02-05T07:25:36Z</dc:date>
    <item>
      <title>If I have an IP address from a search, how do I look for its hostname from a lookup table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/If-I-have-an-IP-address-from-a-search-how-do-I-look-for-its/m-p/583726#M203277</link>
      <description>&lt;P&gt;Hello experts,&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I have only IP address of&amp;nbsp; hosts from a search, how do I look for its hostname from a lookup table?&lt;/P&gt;&lt;P&gt;Let say, I search, index=network_device.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a lookup table that contains IP address and host names of all assets.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Feb 2022 14:41:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/If-I-have-an-IP-address-from-a-search-how-do-I-look-for-its/m-p/583726#M203277</guid>
      <dc:creator>np_hwp</dc:creator>
      <dc:date>2022-02-04T14:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: If I have an IP address from a search, how do I look for its hostname from a lookup table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/If-I-have-an-IP-address-from-a-search-how-do-I-look-for-its/m-p/583731#M203278</link>
      <description>&lt;P&gt;Let's assume the network_device index contains a field called ip_address that holds the IP address of a host.&amp;nbsp; Let's also assume you have a lookup table called hostnames.csv with two fields: ip_address and hostname.&lt;/P&gt;&lt;P&gt;To get a host name from an IP address, a query might look something like this.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=network_device ip_address=*
| lookup hostnames.csv ip_address OUTPUT hostname
| table ip_address hostname&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Feb 2022 14:50:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/If-I-have-an-IP-address-from-a-search-how-do-I-look-for-its/m-p/583731#M203278</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-02-04T14:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: If I have an IP address from a search, how do I look for its hostname from a lookup table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/If-I-have-an-IP-address-from-a-search-how-do-I-look-for-its/m-p/583732#M203279</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/32539"&gt;@np_hwp&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if the field in your lookup are called ip and hostname and the field in the search is called ip, you could run something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=network_device
| lookup your_lookup.csv ip OUTPUT hostname
| table ip hostname&lt;/LI-CODE&gt;&lt;P&gt;For more infos see the lookup command&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.4/SearchReference/Lookup" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.4/SearchReference/Lookup&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 04 Feb 2022 14:51:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/If-I-have-an-IP-address-from-a-search-how-do-I-look-for-its/m-p/583732#M203279</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-02-04T14:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: If I have an IP address from a search, how do I look for its hostname from a lookup table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/If-I-have-an-IP-address-from-a-search-how-do-I-look-for-its/m-p/583811#M203309</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/32539"&gt;@np_hwp&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated by all the Contributors &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Feb 2022 07:25:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/If-I-have-an-IP-address-from-a-search-how-do-I-look-for-its/m-p/583811#M203309</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-02-05T07:25:36Z</dc:date>
    </item>
  </channel>
</rss>

