<?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: How to search values in the lookup file? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-values-in-the-lookup-file/m-p/628566#M218344</link>
    <description>&lt;P&gt;Thanks..not sure why I keep getting error.. this works though&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;| search [ | inputlookup sample.csv | fields data]|lookup sample.csv data local=true .&lt;BR /&gt;This returned all the other fields from csv file to the 'interesting fields' sidebar.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 27 Jan 2023 04:50:50 GMT</pubDate>
    <dc:creator>prasant</dc:creator>
    <dc:date>2023-01-27T04:50:50Z</dc:date>
    <item>
      <title>How to search values in the lookup file?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-values-in-the-lookup-file/m-p/628559#M218338</link>
      <description>&lt;P&gt;I have sample.csv file with about 30000 rows with columns:&lt;/P&gt;
&lt;P&gt;sample data&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;
&lt;P&gt;data&amp;nbsp;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;value1&amp;nbsp; &amp;nbsp;&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;value2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;5600012345&amp;nbsp; &amp;nbsp;&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;abc&amp;nbsp;&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;xxx&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%"&gt;7890012345&amp;nbsp; &amp;nbsp;&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;fsfs&lt;/TD&gt;
&lt;TD width="33.333333333333336%"&gt;rwrr&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&lt;BR /&gt;I have below query&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;index="b2c"
|rex field=path1.path2.details "code=\'(?&amp;lt;data&amp;gt;[^\n\r\']{10})"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can see the extracted 'data' field in the fields list.&lt;BR /&gt;I want to&amp;nbsp; query&amp;nbsp; 'data' column values in the csv file and return table with the data and other fields from the event and csv file. how to use inputlookup or lookup command to search the extracted field? Thanks for the help in advance&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 01:44:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-values-in-the-lookup-file/m-p/628559#M218338</guid>
      <dc:creator>prasant</dc:creator>
      <dc:date>2023-01-27T01:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: search values in the lookup file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-values-in-the-lookup-file/m-p/628560#M218339</link>
      <description>&lt;P&gt;What you describe is exactly what the lookup command does.&amp;nbsp; You can read about it at&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.3/SearchReference/Lookup" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.3/SearchReference/Lookup&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="b2c"
|rex field=path1.path2.details "code=\'(?&amp;lt;data&amp;gt;[^\n\r\']{10})"
| lookup sample.csv data OUTPUT value1 value2&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 27 Jan 2023 01:32:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-values-in-the-lookup-file/m-p/628560#M218339</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-01-27T01:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: search values in the lookup file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-values-in-the-lookup-file/m-p/628563#M218342</link>
      <description>&lt;P&gt;Thanks but getting&amp;nbsp;&lt;SPAN&gt;Streamed search execute failed because: Error in 'lookup' command: Could not construct lookup error,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This works though&amp;nbsp; | search [ | inputlookup sample.csv | fields data]|&lt;BR /&gt;but how can I add the other corresponding columns from csv file along with the other fields from the event?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 03:16:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-values-in-the-lookup-file/m-p/628563#M218342</guid>
      <dc:creator>prasant</dc:creator>
      <dc:date>2023-01-27T03:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: search values in the lookup file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-values-in-the-lookup-file/m-p/628565#M218343</link>
      <description>&lt;P&gt;The lookup command&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;gave should be correct and is definitely the right way to use a lookup.&lt;/P&gt;&lt;P&gt;Look at this question - it has similarities to yours&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.splunk.com/t5/Splunk-Search/Could-not-construct-lookup/m-p/503505" target="_blank"&gt;https://community.splunk.com/t5/Splunk-Search/Could-not-construct-lookup/m-p/503505&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 04:07:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-values-in-the-lookup-file/m-p/628565#M218343</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2023-01-27T04:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to search values in the lookup file?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-values-in-the-lookup-file/m-p/628566#M218344</link>
      <description>&lt;P&gt;Thanks..not sure why I keep getting error.. this works though&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;| search [ | inputlookup sample.csv | fields data]|lookup sample.csv data local=true .&lt;BR /&gt;This returned all the other fields from csv file to the 'interesting fields' sidebar.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 04:50:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-values-in-the-lookup-file/m-p/628566#M218344</guid>
      <dc:creator>prasant</dc:creator>
      <dc:date>2023-01-27T04:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to search values in the lookup file?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-values-in-the-lookup-file/m-p/628571#M218347</link>
      <description>&lt;P&gt;FYI:&amp;nbsp;&lt;/P&gt;&lt;P&gt;All you need to show a lookup is&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup sample.csv&lt;/LI-CODE&gt;&lt;P&gt;prefixing it with search and putting it in a subsearch is not necessary.&lt;/P&gt;&lt;P&gt;but doing that operation is a different thing to doing&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| lookup sample.csv data OUTPUT value1 value2&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 05:15:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-values-in-the-lookup-file/m-p/628571#M218347</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2023-01-27T05:15:37Z</dc:date>
    </item>
  </channel>
</rss>

