<?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 access data in rows of table and then search further using each of those values? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-access-data-in-rows-of-table-and-then-search-further/m-p/479568#M134407</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/201655"&gt;@sai_shreyashi_p&lt;/a&gt;enugo,&lt;BR /&gt;
What about &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"your other search terms"  "*task is being performed*"
|eventstats count(eval(searchmatch("msg1"))) as msg1Count,count(eval(searchmatch("msg2"))) as msg2Count by id
|where msg1Count&amp;gt;0 AND msg2Count &amp;lt; 1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 30 Sep 2020 02:07:16 GMT</pubDate>
    <dc:creator>renjith_nair</dc:creator>
    <dc:date>2020-09-30T02:07:16Z</dc:date>
    <item>
      <title>How to access data in rows of table and then search further using each of those values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-access-data-in-rows-of-table-and-then-search-further/m-p/479565#M134404</link>
      <description>&lt;P&gt;Suppose I have logged data with certain fields like id, level, message etc.&lt;BR /&gt;
Ex: &lt;BR /&gt;
&lt;STRONG&gt;id:123&lt;BR /&gt;
level:warn&lt;BR /&gt;
Message:xyz task is being performed(msg1)&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;I need to find all logs which have the above message logged but should not have gone through a log with message 'abc task is being performed'(msg2)&lt;BR /&gt;
So what I was trying to do was first get all id which have msg1 then use a subsearch to search for each of those ids NOT (msg2) is found. But it isn't working and I even tried:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;fields id | map search=" search sourcetype=default_abc id=* NOT "abc task is being performed" " 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Sorry, I am new to this so I might be wrong with understanding a lot of it.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2019 06:37:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-access-data-in-rows-of-table-and-then-search-further/m-p/479565#M134404</guid>
      <dc:creator>sai_shreyashi_p</dc:creator>
      <dc:date>2019-09-11T06:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to access data in rows of table and then search further using each of those values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-access-data-in-rows-of-table-and-then-search-further/m-p/479566#M134405</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/201655"&gt;@sai_shreyashi_p&lt;/a&gt;enugo,&lt;/P&gt;

&lt;P&gt;Try&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Updated as per comments:&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; "your other search terms"  "*task is being performed*"
 |eventstats count(eval(searchmatch("msg1"))) as msg1Count,count(eval(searchmatch("msg2"))) as msg2Count by id
 |where msg1Count&amp;gt;0 AND msg2Count &amp;lt; 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;=-=-=-=-=-=-=-=-=-=-=&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"your other search terms"  "*task is being performed*" NOT "*msg2"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR&lt;/P&gt;

&lt;P&gt;Extract the message and filter using that&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"base search" | rex field=Message "performed\((?&amp;lt;msg&amp;gt;.+)\)"|where msg!="Msg2"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:10:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-access-data-in-rows-of-table-and-then-search-further/m-p/479566#M134405</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2020-09-30T02:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to access data in rows of table and then search further using each of those values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-access-data-in-rows-of-table-and-then-search-further/m-p/479567#M134406</link>
      <description>&lt;P&gt;thank you for the reply but this won't help completely in my case. I need to check for each id if it has a log with  message 1 and does not have a log with message 2.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2019 11:26:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-access-data-in-rows-of-table-and-then-search-further/m-p/479567#M134406</guid>
      <dc:creator>sai_shreyashi_p</dc:creator>
      <dc:date>2019-09-12T11:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to access data in rows of table and then search further using each of those values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-access-data-in-rows-of-table-and-then-search-further/m-p/479568#M134407</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/201655"&gt;@sai_shreyashi_p&lt;/a&gt;enugo,&lt;BR /&gt;
What about &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"your other search terms"  "*task is being performed*"
|eventstats count(eval(searchmatch("msg1"))) as msg1Count,count(eval(searchmatch("msg2"))) as msg2Count by id
|where msg1Count&amp;gt;0 AND msg2Count &amp;lt; 1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:07:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-access-data-in-rows-of-table-and-then-search-further/m-p/479568#M134407</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2020-09-30T02:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to access data in rows of table and then search further using each of those values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-access-data-in-rows-of-table-and-then-search-further/m-p/479569#M134408</link>
      <description>&lt;P&gt;Thank you so much! This solved it.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2019 05:38:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-access-data-in-rows-of-table-and-then-search-further/m-p/479569#M134408</guid>
      <dc:creator>sai_shreyashi_p</dc:creator>
      <dc:date>2019-09-13T05:38:15Z</dc:date>
    </item>
  </channel>
</rss>

