<?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 keywords from .csv file in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/search-keywords-from-csv-file/m-p/214988#M42310</link>
    <description>&lt;P&gt;if you run a subsearch you use the fields result of the secondary search in the primary (e.g. index=... [ | index=... | dedup my_field | table my_field] means that you use all the values of the field my_field to search only in the my_field field that must be present in the primary search).&lt;BR /&gt;
Renaming a field AS "query" or "SEARCH" and passing them to the primary search you don't search for the pair field=value but you run a full text search having in OR all the keywords of your lookup.&lt;BR /&gt;
see &lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.1/Search/Changetheformatofsubsearchresults#The_search_and_query_fields" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/6.5.1/Search/Changetheformatofsubsearchresults#The_search_and_query_fields&lt;/A&gt;&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 12:16:03 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2020-09-29T12:16:03Z</dc:date>
    <item>
      <title>search keywords from .csv file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/search-keywords-from-csv-file/m-p/214985#M42307</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I want to run a query that search keywords from the .csv file . I have created lookup file and lookup definitions and can see see value present in .csv file after running |inputlookup abc.csv&lt;/P&gt;

&lt;P&gt;Now, suppose earlier I want to run query like this &lt;BR /&gt;
" index = &amp;lt;&amp;gt;  keyword1 keyword2 | table name1, name2 &lt;/P&gt;

&lt;P&gt;want to use .csv file to search for keywords ( as there are many)  and display the result in tabular format &lt;/P&gt;

&lt;P&gt;Thanks in advance. &lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
Binay Agarwal &lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 08:14:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/search-keywords-from-csv-file/m-p/214985#M42307</guid>
      <dc:creator>bagarwal</dc:creator>
      <dc:date>2017-01-05T08:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: search keywords from .csv file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/search-keywords-from-csv-file/m-p/214986#M42308</link>
      <description>&lt;P&gt;Hi bagarwal,&lt;BR /&gt;
to search keywords from a lookup you have to do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=your_index [| inputlookup your_lookup | rename keyword AS query | fields query ] | table ....
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The only problem is that it's very difficult to insert in a field the found keyword.&lt;BR /&gt;
If you want this see this answer I received &lt;A href="https://answers.splunk.com/answers/479831/how-to-search-for-a-pair-of-substrings-in-a-subsea.html"&gt;https://answers.splunk.com/answers/479831/how-to-search-for-a-pair-of-substrings-in-a-subsea.html&lt;/A&gt;.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 08:40:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/search-keywords-from-csv-file/m-p/214986#M42308</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-01-05T08:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: search keywords from .csv file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/search-keywords-from-csv-file/m-p/214987#M42309</link>
      <description>&lt;P&gt;Hi Giuseppe, &lt;/P&gt;

&lt;P&gt;Thanks for response.  The link you have given is no longer available. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; &lt;/P&gt;

&lt;P&gt;In the query&lt;BR /&gt;
 index=your_index [| inputlookup your_lookup | rename keyword AS query | fields query ] | table ....&lt;/P&gt;

&lt;P&gt;didn't understand much the below part&lt;BR /&gt;&lt;BR /&gt;
 rename keyword AS query | fields query ] .  Does it mean all the keywords need to be write in rename .. &lt;BR /&gt;
or any other better way we can present &lt;/P&gt;

&lt;P&gt;Once again, thank you so much for the response.&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
Binay Agarwal &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:16:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/search-keywords-from-csv-file/m-p/214987#M42309</guid>
      <dc:creator>bagarwal</dc:creator>
      <dc:date>2020-09-29T12:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: search keywords from .csv file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/search-keywords-from-csv-file/m-p/214988#M42310</link>
      <description>&lt;P&gt;if you run a subsearch you use the fields result of the secondary search in the primary (e.g. index=... [ | index=... | dedup my_field | table my_field] means that you use all the values of the field my_field to search only in the my_field field that must be present in the primary search).&lt;BR /&gt;
Renaming a field AS "query" or "SEARCH" and passing them to the primary search you don't search for the pair field=value but you run a full text search having in OR all the keywords of your lookup.&lt;BR /&gt;
see &lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.1/Search/Changetheformatofsubsearchresults#The_search_and_query_fields" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/6.5.1/Search/Changetheformatofsubsearchresults#The_search_and_query_fields&lt;/A&gt;&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:16:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/search-keywords-from-csv-file/m-p/214988#M42310</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-29T12:16:03Z</dc:date>
    </item>
  </channel>
</rss>

