<?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 do a text search from the lookup into index? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-text-search-from-the-lookup-into-index/m-p/343489#M101742</link>
    <description>&lt;P&gt;These terms from lookup, do they always appear in a specific place (e.g. after first &lt;CODE&gt;]&lt;/CODE&gt; in the event) or they can be anywhere? Can an event contain more that one term?&lt;/P&gt;</description>
    <pubDate>Tue, 13 Jun 2017 18:18:41 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2017-06-13T18:18:41Z</dc:date>
    <item>
      <title>How to do a text search from the lookup into index?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-text-search-from-the-lookup-into-index/m-p/343473#M101726</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 matching terms from csv file with respect to index events in the table format.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:26:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-text-search-from-the-lookup-into-index/m-p/343473#M101726</guid>
      <dc:creator>onkarkore1</dc:creator>
      <dc:date>2020-09-29T14:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to do a text search from the lookup into index?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-text-search-from-the-lookup-into-index/m-p/343474#M101727</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/175009"&gt;@onkarkore1&lt;/a&gt; this information is not sufficient. &lt;/P&gt;

&lt;P&gt;Which is the common field in Lookup and Index that you want to correlate?&lt;BR /&gt;
If it is not transaction_name, what is the corresponding field in Lookup table?&lt;BR /&gt;
If it is transaction_name, what is the name of the field with same values is the index like status, result etc?&lt;BR /&gt;
What is search? Is that a field? What are its values?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:29:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-text-search-from-the-lookup-into-index/m-p/343474#M101727</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-09-29T14:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to do a text search from the lookup into index?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-text-search-from-the-lookup-into-index/m-p/343475#M101728</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 are the few event samples from iot index and transaction values are given contained in transaction_name column from transaction.csv lookup table.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;trnsaction name:&lt;/STRONG&gt; WSVCUpdateMilestone&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;&lt;STRONG&gt;transaction name: 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;&lt;STRONG&gt;transaction name: 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;&lt;STRONG&gt;transaction name: 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 below,&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:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-text-search-from-the-lookup-into-index/m-p/343475#M101728</guid>
      <dc:creator>onkarkore1</dc:creator>
      <dc:date>2020-09-29T14:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to do a text search from the lookup into index?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-text-search-from-the-lookup-into-index/m-p/343476#M101729</link>
      <description>&lt;P&gt;Are you saying you want splunk to return you one event that contains each term?  Or return the term, if there exists one event that contains that term?&lt;/P&gt;

&lt;P&gt;What are you wanting to do with the results?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 20:41:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-text-search-from-the-lookup-into-index/m-p/343476#M101729</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-06-12T20:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to do a text search from the lookup into index?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-text-search-from-the-lookup-into-index/m-p/343477#M101730</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=index_name
| join type=left transaction_name [| inputlookup transaction.csv append=T | eval listed="true"]
| where listed="true"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The JOIN command put in your search result the field "listed" if the "transaction_name" value is in your lookup.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 21:22:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-text-search-from-the-lookup-into-index/m-p/343477#M101730</guid>
      <dc:creator>renatobamorim</dc:creator>
      <dc:date>2017-06-12T21:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to do a text search from the lookup into index?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-text-search-from-the-lookup-into-index/m-p/343478#M101731</link>
      <description>&lt;P&gt;Give this a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=iot [| inputlookup transaction.csv | eval search=transaction_name | table search]
| rex "transaction name: (?&amp;lt;transaction_name&amp;gt;\S+)" | stats count by transaction_name
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 12 Jun 2017 22:13:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-text-search-from-the-lookup-into-index/m-p/343478#M101731</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-06-12T22:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to do a text search from the lookup into index?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-text-search-from-the-lookup-into-index/m-p/343479#M101732</link>
      <description>&lt;P&gt;Yes I want Splunk to return each term which is exist in the events &lt;/P&gt;

&lt;P&gt;I want to see list of all terms as a search result which are present in events.&lt;/P&gt;

&lt;P&gt;Events are as below,&lt;/P&gt;

&lt;P&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 WSVCUpdateMilestone: 0&lt;/P&gt;

&lt;P&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 WSVCUpdateMilestone: 0&lt;/P&gt;

&lt;P&gt;160701 09:57:32.266 (D 5) [:0x0 0x5774c746 0x49ce2b 0x28 0x0 0x0:N_MlIsMd] DBServerId (FX wf_Engine.c 659) Account server: 3&lt;/P&gt;

&lt;P&gt;160701 09:57:32.266 (I 4) [:0x0 0x5774c746 0x49ce2b 0x28 0x0 0x0:N_MlIsMd] CallData (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. &lt;/P&gt;

&lt;P&gt;transaction_name&lt;BR /&gt;
WSVCUpdateMilestone&lt;BR /&gt;
Workflow&lt;BR /&gt;
DBServerId&lt;BR /&gt;
CallData&lt;BR /&gt;
....&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:26:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-text-search-from-the-lookup-into-index/m-p/343479#M101732</guid>
      <dc:creator>onkarkore1</dc:creator>
      <dc:date>2020-09-29T14:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to do a text search from the lookup into index?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-text-search-from-the-lookup-into-index/m-p/343480#M101733</link>
      <description>&lt;P&gt;I want Splunk to return the term which  is matching with events.&lt;/P&gt;

&lt;P&gt;I want to see the output as list of terms matching with the events&lt;/P&gt;

&lt;P&gt;I have below events,&lt;/P&gt;

&lt;P&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 WSVCUpdateMilestone: 0&lt;/P&gt;

&lt;P&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 WSVCUpdateMilestone: 0&lt;/P&gt;

&lt;P&gt;160701 09:57:32.266 (D 5) [:0x0 0x5774c746 0x49ce2b 0x28 0x0 0x0:N_MlIsMd] DBServerId (FX wf_Engine.c 659) Account server: 3&lt;/P&gt;

&lt;P&gt;160701 09:57:32.266 (I 4) [:0x0 0x5774c746 0x49ce2b 0x28 0x0 0x0:N_MlIsMd] CallData (FX wf_Engine.c 701) CONTENT IN DEBUG FILE&lt;/P&gt;

&lt;P&gt;Now, I have a lookup table named 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;/P&gt;

&lt;P&gt;I have executed below command but it is not showing list of matching terms as a search result.&lt;/P&gt;

&lt;P&gt;I am trying to see list of matching term in table format as a search result&lt;/P&gt;

&lt;P&gt;index="iot"[| inputlookup transaction.csv | eval search=transaction_name | table search]&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:26:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-text-search-from-the-lookup-into-index/m-p/343480#M101733</guid>
      <dc:creator>onkarkore1</dc:creator>
      <dc:date>2020-09-29T14:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to do a text search from the lookup into index?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-text-search-from-the-lookup-into-index/m-p/343481#M101734</link>
      <description>&lt;P&gt;Or that &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* 
    [| inputlookup transaction.csv 
    | return 10000 $search] 
| rex "transaction name: (?&amp;lt;transaction_name&amp;gt;\S+)" 
| stats count by index,transaction_name
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Jun 2017 10:20:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-text-search-from-the-lookup-into-index/m-p/343481#M101734</guid>
      <dc:creator>arcdevil</dc:creator>
      <dc:date>2017-06-13T10:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to do a text search from the lookup into index?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-text-search-from-the-lookup-into-index/m-p/343482#M101735</link>
      <description>&lt;P&gt;I dont have any field in Splunk I want to do a text based search, I have below csv file which contains thousands of entries which I want to match with the events. &lt;/P&gt;

&lt;P&gt;Splunk dont have any field, trying to execute text based search&lt;/P&gt;

&lt;P&gt;Lookup table: transaction.csv&lt;BR /&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;
When I executed below query it is not returning any result, showing blank table&lt;/P&gt;

&lt;P&gt;index="iot" [ | inputlookup "transaction.csv" | table transaction_name | rename  transaction_name as search ] | table  transaction_name &lt;/P&gt;

&lt;P&gt;The above query didn't fetch any result.&lt;/P&gt;

&lt;P&gt;I am trying to display list of all matching terms in table format as a search output&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:26:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-text-search-from-the-lookup-into-index/m-p/343482#M101735</guid>
      <dc:creator>onkarkore1</dc:creator>
      <dc:date>2020-09-29T14:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to do a text search from the lookup into index?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-text-search-from-the-lookup-into-index/m-p/343483#M101736</link>
      <description>&lt;P&gt;I dont have any field in Splunk I want to do a text based search, I have below csv file which contains thousands of entries which I want to match with the events. &lt;/P&gt;

&lt;P&gt;Splunk dont have any field, trying to execute text based search&lt;/P&gt;

&lt;P&gt;Lookup table: transaction.csv&lt;BR /&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;
When I executed below query it is not returning any result, showing blank table&lt;/P&gt;

&lt;P&gt;index="iot" [ | inputlookup "transaction.csv" | table transaction_name | rename  transaction_name as search ] | table  transaction_name &lt;/P&gt;

&lt;P&gt;The above query didn't fetch any result.&lt;/P&gt;

&lt;P&gt;I am trying to display list of all matching terms in table format as a search output&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:26:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-text-search-from-the-lookup-into-index/m-p/343483#M101736</guid>
      <dc:creator>onkarkore1</dc:creator>
      <dc:date>2020-09-29T14:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to do a text search from the lookup into index?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-text-search-from-the-lookup-into-index/m-p/343484#M101737</link>
      <description>&lt;P&gt;When you using "table" command you must specify field name. &lt;/P&gt;

&lt;P&gt;To make your search work please modify it to:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="iot" [ | inputlookup "transaction.csv" | return 10000 $transaction_name] | rex "transaction name: (?\S+)"  | table transaction_name 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And you get a text search, then create a field and a table based on the field.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 10:38:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-text-search-from-the-lookup-into-index/m-p/343484#M101737</guid>
      <dc:creator>arcdevil</dc:creator>
      <dc:date>2017-06-13T10:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to do a text search from the lookup into index?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-text-search-from-the-lookup-into-index/m-p/343485#M101738</link>
      <description>&lt;P&gt;I executed below one, &lt;/P&gt;

&lt;P&gt;index="iot" [ | inputlookup "transaction.csv" | return 10000 $transaction_name] | rex "transaction name: (?\S+)"  | table transaction_name &lt;/P&gt;

&lt;P&gt;encountered error in regex... terms appearing in events are random they are not constant to any specific place&lt;/P&gt;

&lt;P&gt;Then I executed below query,&lt;/P&gt;

&lt;P&gt;index="iot" [ | inputlookup "tr.csv" | return 10000 $transaction_name] | table transaction_name &lt;/P&gt;

&lt;P&gt;it's returning blank table&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:26:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-text-search-from-the-lookup-into-index/m-p/343485#M101738</guid>
      <dc:creator>onkarkore1</dc:creator>
      <dc:date>2020-09-29T14:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to do a text search from the lookup into index?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-text-search-from-the-lookup-into-index/m-p/343486#M101739</link>
      <description>&lt;P&gt;Sorry, error on copy paste. Correct search string:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index="iot" [ | inputlookup "transaction.csv" | return 10000 $transaction_name] | rex  "transaction name: (?&amp;lt;transaction_name&amp;gt;\S+)"  | table transaction_name 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But the structure of the message is the same? I mean "transaction name: Workflow".&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 11:54:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-text-search-from-the-lookup-into-index/m-p/343486#M101739</guid>
      <dc:creator>arcdevil</dc:creator>
      <dc:date>2017-06-13T11:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to do a text search from the lookup into index?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-text-search-from-the-lookup-into-index/m-p/343487#M101740</link>
      <description>&lt;P&gt;The above search is doing a text based search. You can remove the rex line to just return the matching raw events.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 15:48:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-text-search-from-the-lookup-into-index/m-p/343487#M101740</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-06-13T15:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to do a text search from the lookup into index?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-text-search-from-the-lookup-into-index/m-p/343488#M101741</link>
      <description>&lt;P&gt;Above search query is returning the matching raw events. But there are millions of events to scroll down and browse next page is difficult every time.&lt;/P&gt;

&lt;P&gt;What we are looking for is to check each term from csv file whether any events contains term similar to csv lookup&lt;/P&gt;

&lt;P&gt;I am trying to get toutput as a table which contains list of all matching terms and exclude non matching terms of csv lookup.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 17:54:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-text-search-from-the-lookup-into-index/m-p/343488#M101741</guid>
      <dc:creator>onkarkore1</dc:creator>
      <dc:date>2017-06-13T17:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to do a text search from the lookup into index?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-text-search-from-the-lookup-into-index/m-p/343489#M101742</link>
      <description>&lt;P&gt;These terms from lookup, do they always appear in a specific place (e.g. after first &lt;CODE&gt;]&lt;/CODE&gt; in the event) or they can be anywhere? Can an event contain more that one term?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 18:18:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-text-search-from-the-lookup-into-index/m-p/343489#M101742</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-06-13T18:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to do a text search from the lookup into index?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-text-search-from-the-lookup-into-index/m-p/343490#M101743</link>
      <description>&lt;P&gt;Every event contains only one term. and there place is not specific. They can be appear anywhere in the event.&lt;/P&gt;

&lt;P&gt;We just want to check how many terms from lookup returning matching raw events. We want to list down those matching terms which are returning result as a output.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 18:24:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-text-search-from-the-lookup-into-index/m-p/343490#M101743</guid>
      <dc:creator>onkarkore1</dc:creator>
      <dc:date>2017-06-13T18:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to do a text search from the lookup into index?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-text-search-from-the-lookup-into-index/m-p/343491#M101744</link>
      <description>&lt;P&gt;Or is there any way to return only single matching raw event for each terms of csv lookup&lt;/P&gt;

&lt;P&gt;Example: we have thousands of terms in csv lookupup file. So can we return only single matching event for each word. i.e. thousand unique matching raw events with respect to csv lookup.&lt;/P&gt;

&lt;P&gt;Because above search query is returning millions of matching raw events. So its difficult figure out for every terms.&lt;/P&gt;

&lt;P&gt;I have used below search query,&lt;/P&gt;

&lt;P&gt;index=iot [| inputlookup transaction.csv | eval search=transaction_name  | table search] | stats count by transaction_name&lt;/P&gt;

&lt;P&gt;Can we dedup events based on terms. So that it can return only one matching raw event per terms from CSV&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:27:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-text-search-from-the-lookup-into-index/m-p/343491#M101744</guid>
      <dc:creator>onkarkore1</dc:creator>
      <dc:date>2020-09-29T14:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to do a text search from the lookup into index?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-text-search-from-the-lookup-into-index/m-p/343492#M101745</link>
      <description>&lt;P&gt;There might be a very in-efficient method. For that, &lt;BR /&gt;
1) Update your lookup table to include wildcard character &lt;CODE&gt;*&lt;/CODE&gt; before and after the values.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Lookup table: transaction.csv
transaction_name
*status*
*result*
*failed*
....
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;2) You need to create lookup transform and that will use wildcard attribute for match (default is exact match). So, you can create lookup transform on search heads, transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[transaction_lookup ]
 filename = transaction.csv
 match_type = WILDCARD(transaction_name)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;3) use the search like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=iot [| inputlookup transaction.csv | eval search=transaction_name | table search]
| lookup transaction_lookup transaction_name as _raw OUTPUT transaction_name as matched_term | dedup matched_term | table _time _raw matched_term
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Jun 2017 18:53:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-text-search-from-the-lookup-into-index/m-p/343492#M101745</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-06-13T18:53:04Z</dc:date>
    </item>
  </channel>
</rss>

