<?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: Search all lookup files in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-search-across-multiple-lookup-files-to-find/m-p/628627#M218368</link>
    <description>&lt;P&gt;There's no need to grab lookup files from the indexers since the SH should have the same ones.&amp;nbsp; Use the &lt;FONT face="courier new,courier"&gt;splunk_server=local&lt;/FONT&gt; option to suppress the warning.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rest splunk_server=local /servicesNS/-/-/data/lookup-table-files f=title 
| fields title 
| dedup title 
| map maxsearches=1000 search="|inputlookup $title$  | fieldsummary |eval lookup_name=$title$ | fields values field lookup_name " 
| spath input=values 
| rename {}.* as *| fields lookup_name field value 
| search value="text_to_search"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 27 Jan 2023 14:43:08 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2023-01-27T14:43:08Z</dc:date>
    <item>
      <title>Is there a way to search across multiple lookup files to find text within them?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-search-across-multiple-lookup-files-to-find/m-p/628613#M218362</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;Is there a way to search across multiple Lookup files to find text within them ?&amp;nbsp; I know that you can use&amp;nbsp;| inputlookup to get the contents of a single lookup csv file but I'm trying to search for any csv files that might have a specific string value.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 22:30:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-search-across-multiple-lookup-files-to-find/m-p/628613#M218362</guid>
      <dc:creator>finchy</dc:creator>
      <dc:date>2023-01-27T22:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Search all lookup files</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-search-across-multiple-lookup-files-to-find/m-p/628619#M218365</link>
      <description>&lt;P&gt;Searching multiple lookup files requires using multiple &lt;FONT face="courier new,courier"&gt;lookup&lt;/FONT&gt; commands, one for each file.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 13:57:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-search-across-multiple-lookup-files-to-find/m-p/628619#M218365</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-01-27T13:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: Search all lookup files</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-search-across-multiple-lookup-files-to-find/m-p/628620#M218366</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/253297"&gt;@finchy&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You can use below sample, it will search for &amp;nbsp;"text_to_search" value in all lookups. It is better to limit lookup files by filtering title.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rest /servicesNS/-/-/data/lookup-table-files f=title 
| fields title 
| dedup title 
| map maxsearches=1000 search="|inputlookup $title$  | fieldsummary |eval lookup_name=$title$ | fields values field lookup_name " 
| spath input=values 
| rename {}.* as *| fields lookup_name field value 
| search value="text_to_search"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 13:58:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-search-across-multiple-lookup-files-to-find/m-p/628620#M218366</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2023-01-27T13:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: Search all lookup files</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-search-across-multiple-lookup-files-to-find/m-p/628625#M218367</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks i get this error message and only returns a few records guess i don't have enough permissions&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Restricting results of the "rest" operator to the local instance because you do not have the "dispatch_rest_to_indexers" capability&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 14:36:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-search-across-multiple-lookup-files-to-find/m-p/628625#M218367</guid>
      <dc:creator>finchy</dc:creator>
      <dc:date>2023-01-27T14:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: Search all lookup files</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-search-across-multiple-lookup-files-to-find/m-p/628627#M218368</link>
      <description>&lt;P&gt;There's no need to grab lookup files from the indexers since the SH should have the same ones.&amp;nbsp; Use the &lt;FONT face="courier new,courier"&gt;splunk_server=local&lt;/FONT&gt; option to suppress the warning.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rest splunk_server=local /servicesNS/-/-/data/lookup-table-files f=title 
| fields title 
| dedup title 
| map maxsearches=1000 search="|inputlookup $title$  | fieldsummary |eval lookup_name=$title$ | fields values field lookup_name " 
| spath input=values 
| rename {}.* as *| fields lookup_name field value 
| search value="text_to_search"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 14:43:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-way-to-search-across-multiple-lookup-files-to-find/m-p/628627#M218368</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-01-27T14:43:08Z</dc:date>
    </item>
  </channel>
</rss>

