<?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: Not getting results to lookup command in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Not-getting-results-to-lookup-command/m-p/679177#M232172</link>
    <description>&lt;P&gt;The current query will fetch all data from the index and then lookup the Server_name field.&amp;nbsp; To fetch only the hosts in the lookup file from the index, use a subsearch.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=Nagio sourcetype=nagios:core:hard [ | inputlookup Win_inventory.CSV | fields Server_name | rename Server_name as host_name ]&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 29 Feb 2024 16:56:08 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2024-02-29T16:56:08Z</dc:date>
    <item>
      <title>Not getting results to lookup command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Not-getting-results-to-lookup-command/m-p/679143#M232163</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Need your assistance below&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have created new csv lookup and we are using the below query but we are getting&amp;nbsp; all the data from the index &amp;amp; sourcetype . we need to get the events only for the hosts which mentioned on the lookup is the requirement&lt;BR /&gt;&lt;BR /&gt;Lookup name : Win_inventory.CSV&amp;nbsp;used only one column called Server_name&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=Nagio sourcetype=nagios:core:hard 

|lookup Win_inventory.CSV Server_name as host_name OUTPUTNEW Server_name.&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Server_name is not an existing interesting field&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 17:00:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Not-getting-results-to-lookup-command/m-p/679143#M232163</guid>
      <dc:creator>Nagalakshmi</dc:creator>
      <dc:date>2024-02-29T17:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: Not getting results to lookup command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Not-getting-results-to-lookup-command/m-p/679177#M232172</link>
      <description>&lt;P&gt;The current query will fetch all data from the index and then lookup the Server_name field.&amp;nbsp; To fetch only the hosts in the lookup file from the index, use a subsearch.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=Nagio sourcetype=nagios:core:hard [ | inputlookup Win_inventory.CSV | fields Server_name | rename Server_name as host_name ]&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 29 Feb 2024 16:56:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Not-getting-results-to-lookup-command/m-p/679177#M232172</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-02-29T16:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Not getting results to lookup command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Not-getting-results-to-lookup-command/m-p/679192#M232177</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;I used the above query, it is&amp;nbsp; showing 0 events&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 19:19:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Not-getting-results-to-lookup-command/m-p/679192#M232177</guid>
      <dc:creator>Nagalakshmi</dc:creator>
      <dc:date>2024-02-29T19:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: Not getting results to lookup command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Not-getting-results-to-lookup-command/m-p/679198#M232180</link>
      <description>&lt;P&gt;Make sure the Nagio index contains a field called "host_name".&amp;nbsp; If it does not, then change the &lt;FONT face="courier new,courier"&gt;rename&lt;/FONT&gt; command to make the Server_name field match a field name in the index.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 20:27:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Not-getting-results-to-lookup-command/m-p/679198#M232180</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-02-29T20:27:37Z</dc:date>
    </item>
  </channel>
</rss>

