<?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 Splunk query - lookup utilization in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-query-lookup-utilization/m-p/750469#M242371</link>
    <description>&lt;P&gt;Hello all,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am working on an Splunk query which suppose to filter some logs by utilizing data from lookup. Consider a field called host. I have list of host stored on an lookup (let's call the lookup as hostList.csv). Now, I want to retrieve the list of servers from the hostList.csv lookup. And then filter the field host with the retrieved set of list.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Note - I don't want use map command for this.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If is there any other way of pull off this logic. Please help me with example query and explanation.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Fri, 25 Jul 2025 17:22:55 GMT</pubDate>
    <dc:creator>KishoreSrini</dc:creator>
    <dc:date>2025-07-25T17:22:55Z</dc:date>
    <item>
      <title>Splunk query - lookup utilization</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-query-lookup-utilization/m-p/750469#M242371</link>
      <description>&lt;P&gt;Hello all,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am working on an Splunk query which suppose to filter some logs by utilizing data from lookup. Consider a field called host. I have list of host stored on an lookup (let's call the lookup as hostList.csv). Now, I want to retrieve the list of servers from the hostList.csv lookup. And then filter the field host with the retrieved set of list.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Note - I don't want use map command for this.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If is there any other way of pull off this logic. Please help me with example query and explanation.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jul 2025 17:22:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-query-lookup-utilization/m-p/750469#M242371</guid>
      <dc:creator>KishoreSrini</dc:creator>
      <dc:date>2025-07-25T17:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query - lookup utilization</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-query-lookup-utilization/m-p/750471#M242372</link>
      <description>&lt;LI-CODE lang="markup"&gt;index=* [| inputlookup hostList.csv | table host ]&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 25 Jul 2025 17:55:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-query-lookup-utilization/m-p/750471#M242372</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2025-07-25T17:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query - lookup utilization</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-query-lookup-utilization/m-p/750472#M242373</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have tried this method. The host name on the log is structured like "hostname.abcgroup.com". I want to search like, "hostname*". Since, the hostnames are retrieved from lookup it's working as a static string search. Not filtering the host. I tried like this after get the data from lookup,&lt;BR /&gt;&lt;BR /&gt;| eval host_pattern=host."*"&lt;BR /&gt;| table host_pattern&lt;BR /&gt;&lt;BR /&gt;But, this is also not working. I guess the Splunk may consider the wildcard * as string. Since, I am filtering like this. Any suggestion for this...&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jul 2025 18:31:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-query-lookup-utilization/m-p/750472#M242373</guid>
      <dc:creator>KishoreSrini</dc:creator>
      <dc:date>2025-07-25T18:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query - lookup utilization</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-query-lookup-utilization/m-p/750475#M242374</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=* [| inputlookup hostList.csv | eval string="host=".host."*" | table string | format ]&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 28 Jul 2025 12:31:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-query-lookup-utilization/m-p/750475#M242374</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2025-07-28T12:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query - lookup utilization</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-query-lookup-utilization/m-p/750557#M242375</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank your help.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With your suggestion, I also included a format command to format the output with "OR," which is now working.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=* [| inputlookup hostList.csv | eval string="host=".host."*" | table string | format]&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;Once again, Thank you for the help&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jul 2025 12:22:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-query-lookup-utilization/m-p/750557#M242375</guid>
      <dc:creator>KishoreSrini</dc:creator>
      <dc:date>2025-07-28T12:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk query - lookup utilization</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-query-lookup-utilization/m-p/750558#M242376</link>
      <description>&lt;P&gt;I have updated my response (I couldn't remember if the default was to format with "OR" or not!)&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jul 2025 12:32:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-query-lookup-utilization/m-p/750558#M242376</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2025-07-28T12:32:06Z</dc:date>
    </item>
  </channel>
</rss>

