<?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 unstructured log for all values in your lookup file? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-unstructured-log-for-all-values-in-your-lookup/m-p/350472#M103766</link>
    <description>&lt;P&gt;If this answer satisfies your question, please accept or upvote it.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Wed, 20 Sep 2017 11:10:51 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2017-09-20T11:10:51Z</dc:date>
    <item>
      <title>How to search unstructured log for all values in your lookup file?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-unstructured-log-for-all-values-in-your-lookup/m-p/350467#M103761</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'd like to search our log for multiple possible errors from our lookup file:  &lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/3525i0E028C398B180CC5/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;to return only the records containing in any field one of the strings in the Error column and show the corresponding value from the Source column.&lt;/P&gt;

&lt;P&gt;Is there a way ,such as  | inputlookup errors.csv | foreach... | search ...?&lt;/P&gt;

&lt;P&gt;Many thanks in advance,&lt;/P&gt;

&lt;P&gt;Luc &lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2017 14:36:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-unstructured-log-for-all-values-in-your-lookup/m-p/350467#M103761</guid>
      <dc:creator>luc_k</dc:creator>
      <dc:date>2017-09-19T14:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to search unstructured log for all values in your lookup file?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-unstructured-log-for-all-values-in-your-lookup/m-p/350468#M103762</link>
      <description>&lt;P&gt;Hi  luc_k,&lt;BR /&gt;
it's possible to search for the full string yu have in the Ettor field.&lt;BR /&gt;
In other words: you can search for "Some Errors occurred" but not for  Some Errors occurred&lt;BR /&gt;
try something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your_search [ | inputlookup your_lookup.csv | rename Error AS quesry | fields query ]
| ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In this way you search in full text search in all events.&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2017 14:58:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-unstructured-log-for-all-values-in-your-lookup/m-p/350468#M103762</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-09-19T14:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to search unstructured log for all values in your lookup file?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-unstructured-log-for-all-values-in-your-lookup/m-p/350469#M103763</link>
      <description>&lt;P&gt;Thank you for your prompt reply. This returns the search results. How do I return the Source column?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2017 17:18:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-unstructured-log-for-all-values-in-your-lookup/m-p/350469#M103763</guid>
      <dc:creator>luc_k</dc:creator>
      <dc:date>2017-09-19T17:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to search unstructured log for all values in your lookup file?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-unstructured-log-for-all-values-in-your-lookup/m-p/350470#M103764</link>
      <description>&lt;P&gt;To return the Source column -  something like your_search [ | inputlookup your_lookup.csv | rename Error AS quesry | fields query ] | lookup your_lookup.csv ...?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:53:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-unstructured-log-for-all-values-in-your-lookup/m-p/350470#M103764</guid>
      <dc:creator>luc_k</dc:creator>
      <dc:date>2020-09-29T15:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to search unstructured log for all values in your lookup file?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-unstructured-log-for-all-values-in-your-lookup/m-p/350471#M103765</link>
      <description>&lt;P&gt;Hi luc_k,&lt;BR /&gt;
it isn't so easy this last question because when you use query field in search you lose the pair field=value and you have to rebuid it,&lt;BR /&gt;
 you should try something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; your_search [ | inputlookup your_lookup.csv | rename Error AS quesry | fields query ]
 | rename _raw as rawText
 | eval foo=[
     | inputlookup your_lookup.csv 
     | eval query="%"+Error+"%" 
     | stats values(query) AS query 
     | eval query=mvjoin(query,",") 
     | fields query 
     | format "" "" "" "" "" ""
     ]
| eval foo=split(foo,",") 
| mvexpand foo 
| where like(rawText,foo)
| rex field=foo "\%(?&amp;lt;Error&amp;gt;[^\%]*)\%"
| ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 10:45:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-unstructured-log-for-all-values-in-your-lookup/m-p/350471#M103765</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-09-20T10:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to search unstructured log for all values in your lookup file?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-unstructured-log-for-all-values-in-your-lookup/m-p/350472#M103766</link>
      <description>&lt;P&gt;If this answer satisfies your question, please accept or upvote it.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 11:10:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-unstructured-log-for-all-values-in-your-lookup/m-p/350472#M103766</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-09-20T11:10:51Z</dc:date>
    </item>
  </channel>
</rss>

