<?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 pull additional fields from a lookup that is using wildcards? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-pull-additional-fields-from-a-lookup-that-is-using/m-p/562492#M195626</link>
    <description>&lt;P&gt;One can use wildcards in a lookup if one defines the lookup that way.&amp;nbsp; Go to Settings-&amp;gt;Lookups and click on "Lookup definitions".&amp;nbsp; Add a new definition that references mylookup.csv.&amp;nbsp; Click the Advanced box and type "WILDCARD(Message)" in the "Match type" box.&lt;/P&gt;&lt;P&gt;Invoke the wildcard lookup with the &lt;FONT face="courier new,courier"&gt;lookup&lt;/FONT&gt; command (see the Search Reference manual for the difference between &lt;FONT face="courier new,courier"&gt;lookup&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;inputlookup&lt;/FONT&gt;).&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=os source=/var/log/messages host=linuxserver1p | rex field=_raw "(?&amp;lt;Message&amp;gt;.*)"
| lookup mylookup Message OUTPUT Severity | table Message Severity&lt;/LI-CODE&gt;</description>
    <pubDate>Sat, 07 Aug 2021 13:29:05 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2021-08-07T13:29:05Z</dc:date>
    <item>
      <title>How to pull additional fields from a lookup that is using wildcards?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-pull-additional-fields-from-a-lookup-that-is-using/m-p/562467#M195620</link>
      <description>&lt;P&gt;I'm trying to build a search that will return an event and the severity of that event. I have the events with wildcards for parts that might change and severity in a lookup.&lt;BR /&gt;&lt;BR /&gt;Here's an example from my lookup&lt;BR /&gt;Message,Severity&lt;BR /&gt;*kernel: nfs: server * OK,normal&lt;BR /&gt;*kernel: nfs: server * not responding* still trying,critical&lt;BR /&gt;&lt;BR /&gt;If I run this search I get back the results I'd like, but have no way of referencing this back to the lookup to grab severity because the Message doesn't match whats in the lookup due to the wildcards&lt;BR /&gt;&lt;BR /&gt;index=os source=/var/log/messages host=linuxserver1p | rex field=_raw "(?&amp;lt;Message&amp;gt;.*)"&lt;BR /&gt;| search [inputlookup mylookup.csv | table Message]&lt;/P&gt;&lt;DIV class="shared-eventsviewer-shared-rawfield"&gt;&lt;DIV class="raw-event normal  wrap "&gt;&lt;SPAN class="t"&gt;&lt;SPAN class="t h"&gt;Jul&lt;/SPAN&gt; 28 02:15:40 linuxserverp kernel: nfs: server fixdist OK&lt;BR /&gt;Jul&lt;/SPAN&gt; &lt;SPAN class="t"&gt;28&lt;/SPAN&gt; &lt;SPAN class="t"&gt;01:30:37&lt;/SPAN&gt; &lt;SPAN class="t"&gt;linuxserver1p&lt;/SPAN&gt; &lt;SPAN class="t"&gt;kernel:&lt;/SPAN&gt; &lt;SPAN class="t"&gt;nfs:&lt;/SPAN&gt; &lt;SPAN class="t"&gt;server&lt;/SPAN&gt; &lt;SPAN class="t"&gt;fixdist&lt;/SPAN&gt; &lt;SPAN class="t h"&gt;not&lt;/SPAN&gt; &lt;SPAN class="t"&gt;responding&lt;/SPAN&gt;, &lt;SPAN class="t"&gt;still&lt;/SPAN&gt; &lt;SPAN class="t"&gt;&lt;SPAN class="t"&gt;trying&lt;BR /&gt;&lt;BR /&gt;How can I take these results back to my lookup and be able to pull severity out?&lt;BR /&gt;&lt;BR /&gt;Here is another search I've tried where I have both the results I want and the values from the lookup and I just need to join them together somehow, but as far as I can tell the join won't work with wildcards&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;|inputlookup mylookup.csv |rename Message as msg&lt;/P&gt;&lt;P&gt;| append[search index=os source=/var/log/messages host=linuxserver1p | rex field=_raw "(?&amp;lt;Message&amp;gt;.*)" | search [inputlookup mylookup.csv | table Message]]&lt;/P&gt;&lt;P&gt;|table Message msg Severity&lt;/P&gt;&lt;SPAN class="t"&gt;&lt;BR /&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="raw-event normal  wrap "&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 21 Sep 2021 17:55:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-pull-additional-fields-from-a-lookup-that-is-using/m-p/562467#M195620</guid>
      <dc:creator>joeybagofdonuts</dc:creator>
      <dc:date>2021-09-21T17:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to pull additional fields from a lookup that is using wildcards?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-pull-additional-fields-from-a-lookup-that-is-using/m-p/562492#M195626</link>
      <description>&lt;P&gt;One can use wildcards in a lookup if one defines the lookup that way.&amp;nbsp; Go to Settings-&amp;gt;Lookups and click on "Lookup definitions".&amp;nbsp; Add a new definition that references mylookup.csv.&amp;nbsp; Click the Advanced box and type "WILDCARD(Message)" in the "Match type" box.&lt;/P&gt;&lt;P&gt;Invoke the wildcard lookup with the &lt;FONT face="courier new,courier"&gt;lookup&lt;/FONT&gt; command (see the Search Reference manual for the difference between &lt;FONT face="courier new,courier"&gt;lookup&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;inputlookup&lt;/FONT&gt;).&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=os source=/var/log/messages host=linuxserver1p | rex field=_raw "(?&amp;lt;Message&amp;gt;.*)"
| lookup mylookup Message OUTPUT Severity | table Message Severity&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 07 Aug 2021 13:29:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-pull-additional-fields-from-a-lookup-that-is-using/m-p/562492#M195626</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-08-07T13:29:05Z</dc:date>
    </item>
  </channel>
</rss>

