<?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 How to search a list of words from csv file (lookup) in specific index  events in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-a-list-of-words-from-csv-file-lookup-in-specific/m-p/343299#M101648</link>
    <description>&lt;P&gt;I have a lookup table which contains only one column with hundreds of entries, now I would like to search every word in splunk whether any event appear containing word from csv.&lt;/P&gt;

&lt;P&gt;How can I achieve this?&lt;/P&gt;

&lt;P&gt;any help will be appreciated.&lt;/P&gt;</description>
    <pubDate>Sun, 11 Jun 2017 20:40:38 GMT</pubDate>
    <dc:creator>onkarkore1</dc:creator>
    <dc:date>2017-06-11T20:40:38Z</dc:date>
    <item>
      <title>How to search a list of words from csv file (lookup) in specific index  events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-a-list-of-words-from-csv-file-lookup-in-specific/m-p/343299#M101648</link>
      <description>&lt;P&gt;I have a lookup table which contains only one column with hundreds of entries, now I would like to search every word in splunk whether any event appear containing word from csv.&lt;/P&gt;

&lt;P&gt;How can I achieve this?&lt;/P&gt;

&lt;P&gt;any help will be appreciated.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2017 20:40:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-a-list-of-words-from-csv-file-lookup-in-specific/m-p/343299#M101648</guid>
      <dc:creator>onkarkore1</dc:creator>
      <dc:date>2017-06-11T20:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to search a list of words from csv file (lookup) in specific index  events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-a-list-of-words-from-csv-file-lookup-in-specific/m-p/343300#M101649</link>
      <description>&lt;P&gt;Hi onkarkore1,&lt;/P&gt;

&lt;P&gt;you can try something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; your base search here  [ | inputlookup yourLookupTableHere | return columnName ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will get all entries from the lookup and create a long search like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search here ( columnName=val1 OR columnName=val2 OR columnName=val3 .... )
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope this helps to get you started ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2017 20:52:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-a-list-of-words-from-csv-file-lookup-in-specific/m-p/343300#M101649</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2017-06-11T20:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to search a list of words from csv file (lookup) in specific index  events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-a-list-of-words-from-csv-file-lookup-in-specific/m-p/343301#M101650</link>
      <description>&lt;P&gt;II have a lookup table named transaction.csv contains one colunm, transaction_name. The goal is to have Splunk go through the lookup table and match text in the column named, transaction_name. and return a matching term&lt;/P&gt;

&lt;P&gt;Lookup table is "transaction.csv" having one column named, transaction_name it have N numbers of entries (1000 entries) follows:&lt;/P&gt;

&lt;P&gt;transaction_name&lt;BR /&gt;
status&lt;BR /&gt;
result&lt;BR /&gt;
failed&lt;BR /&gt;
success&lt;BR /&gt;
report&lt;BR /&gt;
idle&lt;BR /&gt;
....&lt;BR /&gt;
Any help would be great. I have tried the below:&lt;/P&gt;

&lt;P&gt;index=index_name [| inputlookup transaction.csv | eval search=transaction_name | table search]&lt;/P&gt;

&lt;P&gt;Above search query not returning matching terms in table format.&lt;/P&gt;

&lt;P&gt;I would like to see output of matching terms(from csv file and events) in table format.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:25:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-a-list-of-words-from-csv-file-lookup-in-specific/m-p/343301#M101650</guid>
      <dc:creator>onkarkore1</dc:creator>
      <dc:date>2020-09-29T14:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to search a list of words from csv file (lookup) in specific index  events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-a-list-of-words-from-csv-file-lookup-in-specific/m-p/343302#M101651</link>
      <description>&lt;P&gt;Hi, Please check this one - &lt;BR /&gt;
&lt;PRE&gt;index=index_name [|inputlookup transaction.csv | return transaction_name] &lt;/PRE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:26:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-a-list-of-words-from-csv-file-lookup-in-specific/m-p/343302#M101651</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2020-09-29T14:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to search a list of words from csv file (lookup) in specific index  events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-a-list-of-words-from-csv-file-lookup-in-specific/m-p/343303#M101652</link>
      <description>&lt;P&gt;I would like to see either matching or non-matching transaction names returned by transaction_name column from transaction.csv file with respect to events in index.&lt;/P&gt;

&lt;P&gt;But above search query is not returning any data, when I executed above query it returned no result found.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 19:44:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-a-list-of-words-from-csv-file-lookup-in-specific/m-p/343303#M101652</guid>
      <dc:creator>onkarkore1</dc:creator>
      <dc:date>2017-06-12T19:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to search a list of words from csv file (lookup) in specific index  events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-a-list-of-words-from-csv-file-lookup-in-specific/m-p/343304#M101653</link>
      <description>&lt;P&gt;Please provide some useful raw events and your expected result, otherwise there is no way for anyone to help you get the result you want &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 19:48:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-a-list-of-words-from-csv-file-lookup-in-specific/m-p/343304#M101653</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2017-06-12T19:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to search a list of words from csv file (lookup) in specific index  events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-a-list-of-words-from-csv-file-lookup-in-specific/m-p/343305#M101654</link>
      <description>&lt;P&gt;My index name is iot which is generating number of events as below,&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;index=iot&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Below is the transaction value contained in transaction_name csv from transaction.csv lookup and events from iot index&lt;/P&gt;

&lt;P&gt;trnsaction_name: &lt;STRONG&gt;WSVCUpdateMilestone&lt;/STRONG&gt;&lt;BR /&gt;
160701 09:57:32.322 (I 4) [:0x0 0x5774c746 0x49ce2b 0x28 0x0 0x0:N_MlIsMd] Workflow (FX we_WorkflowUpdate.c 272) Status returning by  &lt;STRONG&gt;WSVCUpdateMilestone&lt;/STRONG&gt;: 0&lt;/P&gt;

&lt;P&gt;transaction_name: &lt;STRONG&gt;Workflow&lt;/STRONG&gt;&lt;BR /&gt;
160701 09:57:32.322 (I 4) [:0x0 0x5774c746 0x49ce2b 0x28 0x0 0x0:N_MlIsMd] &lt;STRONG&gt;Workflow&lt;/STRONG&gt; (FX we_WorkflowUpdate.c 272) Status returning by  WSVCUpdateMilestone: 0&lt;/P&gt;

&lt;P&gt;transaction_name: &lt;STRONG&gt;DBServerId&lt;/STRONG&gt;&lt;BR /&gt;
160701 09:57:32.266 (D 5) [:0x0 0x5774c746 0x49ce2b 0x28 0x0 0x0:N_MlIsMd] &lt;STRONG&gt;DBServerId&lt;/STRONG&gt; (FX wf_Engine.c 659) Account server: 3&lt;/P&gt;

&lt;P&gt;transaction_name: &lt;STRONG&gt;CallData&lt;/STRONG&gt;&lt;BR /&gt;
160701 09:57:32.266 (I 4) [:0x0 0x5774c746 0x49ce2b 0x28 0x0 0x0:N_MlIsMd] &lt;STRONG&gt;CallData&lt;/STRONG&gt; (FX wf_Engine.c 701) CONTENT IN DEBUG FILE&lt;/P&gt;

&lt;P&gt;Now, I have a lookup table named transaction.csv contains one colunm, transaction_name. The goal is to have Splunk go through the lookup table and match text in the column, transaction_name with the index iot. and return either matching or non-matching term&lt;/P&gt;

&lt;P&gt;Lookup table is "transaction.csv" having one column named, transaction_name it have N numbers of entries (1000 entries) follows:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;transaction_name&lt;/STRONG&gt;&lt;BR /&gt;
WSVCUpdateMilestone&lt;BR /&gt;
Workflow&lt;BR /&gt;
DBServerId&lt;BR /&gt;
CallData&lt;BR /&gt;
....&lt;BR /&gt;
These are thousands of transaction name contained in lookup table, we want to check whether index is returning any events containing above transaction value.&lt;/P&gt;

&lt;P&gt;Manually executing search query is difficult for thousands of entries like,&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;index="index_name" "transaction_name"&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;This is why we want to use lookup which will go through index events and return list of either matching or non_matching transaction values from table.&lt;/P&gt;

&lt;P&gt;Any help would be great. I have tried the below:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;index=iot [|inputlookup transaction.csv | return transaction_name]&lt;/STRONG&gt; &lt;/P&gt;

&lt;P&gt;But above search query is not returning any data, when I executed above query it returned no result found.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:29:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-a-list-of-words-from-csv-file-lookup-in-specific/m-p/343305#M101654</guid>
      <dc:creator>onkarkore1</dc:creator>
      <dc:date>2020-09-29T14:29:16Z</dc:date>
    </item>
  </channel>
</rss>

