<?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: inputlookup query table fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/inputlookup-query-table-fields/m-p/672633#M230355</link>
    <description>&lt;P&gt;Looks like it works but the received results are the same for each host, I have 7 of&amp;nbsp; 8 servers offline and they all show received responses.&lt;/P&gt;</description>
    <pubDate>Fri, 22 Dec 2023 20:00:24 GMT</pubDate>
    <dc:creator>MGlass</dc:creator>
    <dc:date>2023-12-22T20:00:24Z</dc:date>
    <item>
      <title>inputlookup query table fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/inputlookup-query-table-fields/m-p/672622#M230353</link>
      <description>&lt;P&gt;I am running the current search using the network toolkit but will not show the hostname field from the csv, do I need to do another inputlookup at the end of the search.&lt;/P&gt;&lt;P&gt;| inputlookup iphost.csv&lt;BR /&gt;| search src_ipV4=* hostname=*&lt;BR /&gt;| rename src_ipV4 as host&lt;BR /&gt;| stats values(host) as host&lt;BR /&gt;| mvexpand host&lt;BR /&gt;| map maxsearches=50 search="| ping host=$host$ count=1 | eval dest=if(isnull(dest),host,dest) | fields host dest received"&lt;BR /&gt;| table host dest received hostname&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2023 17:08:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/inputlookup-query-table-fields/m-p/672622#M230353</guid>
      <dc:creator>MGlass</dc:creator>
      <dc:date>2023-12-22T17:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: inputlookup query table fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/inputlookup-query-table-fields/m-p/672624#M230354</link>
      <description>&lt;P&gt;Since you are piping to a map command the final resulting dataset you are presented with are from the inner search of that map command. You should be able to use hostname as a token inside that inner search to get it to show up in the final results.&lt;BR /&gt;&lt;BR /&gt;Something like this.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup iphost.csv
| search src_ipV4=* hostname=*
| rename src_ipV4 as host
| stats values(host) as host by hostname
| mvexpand host
| map maxsearches=50 search="| ping host=$host$ count=1 | eval dest=if(isnull(dest),host,dest), hostname=\"$hostname$\" | fields host dest received, hostname"
| table host dest received hostname&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2023 17:28:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/inputlookup-query-table-fields/m-p/672624#M230354</guid>
      <dc:creator>dtburrows3</dc:creator>
      <dc:date>2023-12-22T17:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: inputlookup query table fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/inputlookup-query-table-fields/m-p/672633#M230355</link>
      <description>&lt;P&gt;Looks like it works but the received results are the same for each host, I have 7 of&amp;nbsp; 8 servers offline and they all show received responses.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2023 20:00:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/inputlookup-query-table-fields/m-p/672633#M230355</guid>
      <dc:creator>MGlass</dc:creator>
      <dc:date>2023-12-22T20:00:24Z</dc:date>
    </item>
  </channel>
</rss>

