<?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: Detecting keywords from another search in a field from other search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Detecting-keywords-from-another-search-in-a-field-from-other/m-p/133052#M36338</link>
    <description>&lt;P&gt;Configuration of the Lookup table files and Lookup definitions are required. &lt;/P&gt;

&lt;P&gt;&lt;SEARCH&gt;&lt;BR /&gt;
.....|join ExtraInfo[ | inputlookup lookup_tbl]|table Keyword,Count&lt;BR /&gt;
&lt;LOOKUP_TBL&gt;&lt;BR /&gt;
ExtraInfo,Keyword&lt;BR /&gt;
"User-Gmail-GoogleChrome","Gmail"&lt;BR /&gt;
"User-Gmail-GoogleChromeXXX","Gmail"&lt;BR /&gt;
"User-Gmail-GoogleChromeYYY","Gmail"&lt;BR /&gt;
"Inbox-Yahoo! Mail","Yahoo! Mail"&lt;BR /&gt;
"Inbox-Yahoo! MailXXX","Yahoo! Mail"&lt;BR /&gt;
"Inbox-Yahoo! MailYYY","Yahoo! Mail"&lt;/LOOKUP_TBL&gt;&lt;/SEARCH&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 15:46:56 GMT</pubDate>
    <dc:creator>HiroshiSatoh</dc:creator>
    <dc:date>2020-09-28T15:46:56Z</dc:date>
    <item>
      <title>Detecting keywords from another search in a field from other search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Detecting-keywords-from-another-search-in-a-field-from-other/m-p/133051#M36337</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;

&lt;P&gt;I have a requirement like this. In a search I am getting a field like&lt;BR /&gt;
ExtraInfo                 Count&lt;BR /&gt;
User-Gmail-GoogleChrome    6&lt;BR /&gt;
Inbox-Yahoo! Mail          3&lt;BR /&gt;
.....&lt;/P&gt;

&lt;P&gt;In another I have keywords like Gmail,Yahoo! Mail,...etc.&lt;/P&gt;

&lt;P&gt;I want to write a query which gives me the output like this.&lt;/P&gt;

&lt;P&gt;Keyword     Count&lt;BR /&gt;
Gmail        6&lt;BR /&gt;
Yahoo! Mail  3&lt;/P&gt;

&lt;P&gt;Could you please help me in this regard?&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2014 01:47:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Detecting-keywords-from-another-search-in-a-field-from-other/m-p/133051#M36337</guid>
      <dc:creator>tirusplunk</dc:creator>
      <dc:date>2014-01-31T01:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting keywords from another search in a field from other search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Detecting-keywords-from-another-search-in-a-field-from-other/m-p/133052#M36338</link>
      <description>&lt;P&gt;Configuration of the Lookup table files and Lookup definitions are required. &lt;/P&gt;

&lt;P&gt;&lt;SEARCH&gt;&lt;BR /&gt;
.....|join ExtraInfo[ | inputlookup lookup_tbl]|table Keyword,Count&lt;BR /&gt;
&lt;LOOKUP_TBL&gt;&lt;BR /&gt;
ExtraInfo,Keyword&lt;BR /&gt;
"User-Gmail-GoogleChrome","Gmail"&lt;BR /&gt;
"User-Gmail-GoogleChromeXXX","Gmail"&lt;BR /&gt;
"User-Gmail-GoogleChromeYYY","Gmail"&lt;BR /&gt;
"Inbox-Yahoo! Mail","Yahoo! Mail"&lt;BR /&gt;
"Inbox-Yahoo! MailXXX","Yahoo! Mail"&lt;BR /&gt;
"Inbox-Yahoo! MailYYY","Yahoo! Mail"&lt;/LOOKUP_TBL&gt;&lt;/SEARCH&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:46:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Detecting-keywords-from-another-search-in-a-field-from-other/m-p/133052#M36338</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2020-09-28T15:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting keywords from another search in a field from other search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Detecting-keywords-from-another-search-in-a-field-from-other/m-p/133053#M36339</link>
      <description>&lt;P&gt;Can I place only keywords in lookup table instead of both ExtraInfo and Keyword?&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2014 03:29:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Detecting-keywords-from-another-search-in-a-field-from-other/m-p/133053#M36339</guid>
      <dc:creator>tirusplunk</dc:creator>
      <dc:date>2014-01-31T03:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting keywords from another search in a field from other search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Detecting-keywords-from-another-search-in-a-field-from-other/m-p/133054#M36340</link>
      <description>&lt;P&gt;&lt;SOURCE&gt;ExtraInfo!=ExtraInfo|eval X=case(ExtraInfo LIKE "%Gmail%","Gmail",ExtraInfo LIKE "%Outlook Web App%","Outlook Web App",ExtraInfo LIKE "%Yahoo! Mail%","Yahoo! Mail")&lt;/SOURCE&gt;&lt;/P&gt;

&lt;P&gt;I could think of this. But can I manage this big case statement(this case statement may grow) like an event-type or something else in my splunk?&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2014 05:36:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Detecting-keywords-from-another-search-in-a-field-from-other/m-p/133054#M36340</guid>
      <dc:creator>tirusplunk</dc:creator>
      <dc:date>2014-01-31T05:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting keywords from another search in a field from other search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Detecting-keywords-from-another-search-in-a-field-from-other/m-p/133055#M36341</link>
      <description>&lt;P&gt;Custom field cannot be edited without a LOOKUP?&lt;BR /&gt;
&lt;EX&gt;&lt;BR /&gt;
....|rex field=ExtraInfo "-(?&lt;KEYWORD&gt;.*)$"|table Keyword&lt;/KEYWORD&gt;&lt;/EX&gt;&lt;/P&gt;

&lt;P&gt;&lt;KEYWORD&gt;&lt;BR /&gt;
Gmail-GoogleChrome&lt;BR /&gt;
Yahoo! Mail&lt;/KEYWORD&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2014 07:08:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Detecting-keywords-from-another-search-in-a-field-from-other/m-p/133055#M36341</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2014-01-31T07:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting keywords from another search in a field from other search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Detecting-keywords-from-another-search-in-a-field-from-other/m-p/133056#M36342</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;first search giving fields ExtraInfo,Count&amp;gt; | fields ExtraInfo, Count | eval joinfield=1
| join type=left max=0 joinfield [search &amp;lt;second search giving fields Keyword&amp;gt; | fields Keyword | eval joinfield=1] | eval shouldInclude=if(like(ExtraInfo,"%".Keyword."%"),"Yes","No") | where shouldInclude="Yes" | fields Keyword, Count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 31 Jan 2014 17:32:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Detecting-keywords-from-another-search-in-a-field-from-other/m-p/133056#M36342</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-01-31T17:32:08Z</dc:date>
    </item>
  </channel>
</rss>

