<?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: Search doesn't show results if for the same node are present two type of alarms in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-doesn-t-show-results-if-for-the-same-node-are-present-two/m-p/304218#M91481</link>
    <description>&lt;P&gt;It doesn't work. &lt;BR /&gt;
The search include all alarms (FAN-IS and SRMISS)&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jul 2017 14:53:12 GMT</pubDate>
    <dc:creator>ngerosa</dc:creator>
    <dc:date>2017-07-12T14:53:12Z</dc:date>
    <item>
      <title>Search doesn't show results if for the same node are present two type of alarms</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-doesn-t-show-results-if-for-the-same-node-are-present-two/m-p/304214#M91477</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;
I have a query that extract some type of alarms divided by NODE.&lt;BR /&gt;
These are the columns of the query:&lt;/P&gt;

&lt;P&gt;_time   ALARM   NODE   &lt;/P&gt;

&lt;P&gt;If for the same NODE is present ALARM = "FAN-IS" and ALARM="SRMISS" I don't want to show the two rows of the two alarms.&lt;/P&gt;

&lt;P&gt;Example:&lt;/P&gt;

&lt;P&gt;2017-07-11 13:00:25  FAN-IS   MILAN&lt;BR /&gt;
2017-07-11 13:01:42  SRMISS   MILAN&lt;BR /&gt;
2017-07-11 14:10:12  CARD-PROBLEM  ROME&lt;/P&gt;

&lt;P&gt;I want to show only:&lt;/P&gt;

&lt;P&gt;2017-07-11 14:10:12  CARD-PROBLEM  ROME&lt;/P&gt;

&lt;P&gt;Any ideas?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 07:59:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-doesn-t-show-results-if-for-the-same-node-are-present-two/m-p/304214#M91477</guid>
      <dc:creator>ngerosa</dc:creator>
      <dc:date>2017-07-12T07:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Search doesn't show results if for the same node are present two type of alarms</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-doesn-t-show-results-if-for-the-same-node-are-present-two/m-p/304215#M91478</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Your query giving fields _time ALARM NODE
| eventstats values(ALARM) as alarms by NODE
| where NOT (isnotnull(mvfind(alarms,"FAN-IS")) AND isnotnull(mvfind(alarms,"SRMISS"))) 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Updated answer&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; Your query giving fields _time ALARM NODE
  | eventstats values(ALARM) as alarms by NODE
  | eval shouldKeep=if(isnotnull(mvfind(alarms,"FAN-IS")) AND isnotnull(mvfind(alarms,"SRMISS")),"No","Yes")
  | where shouldKeep="Yes"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Jul 2017 14:01:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-doesn-t-show-results-if-for-the-same-node-are-present-two/m-p/304215#M91478</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-07-12T14:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: Search doesn't show results if for the same node are present two type of alarms</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-doesn-t-show-results-if-for-the-same-node-are-present-two/m-p/304216#M91479</link>
      <description>&lt;P&gt;Hi somesoni2,&lt;BR /&gt;
I tried but it didn't work.&lt;BR /&gt;
The following is the results of the search:&lt;/P&gt;

&lt;P&gt;ALARM   NODE   _time                            alarms&lt;BR /&gt;
SRMISS MILAN 2017-06-21 13:08:18.0  FAN-IS&lt;BR /&gt;
                                                                        SRMISS&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 14:29:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-doesn-t-show-results-if-for-the-same-node-are-present-two/m-p/304216#M91479</guid>
      <dc:creator>ngerosa</dc:creator>
      <dc:date>2017-07-12T14:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: Search doesn't show results if for the same node are present two type of alarms</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-doesn-t-show-results-if-for-the-same-node-are-present-two/m-p/304217#M91480</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Your query giving fields _time ALARM NODE
 | eventstats values(ALARM) as alarms by NODE
 | where isnull(mvfind(alarms,"FAN-IS")) AND isnull(mvfind(alarms,"SRMISS"))
| fields - alarms
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Jul 2017 14:38:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-doesn-t-show-results-if-for-the-same-node-are-present-two/m-p/304217#M91480</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-07-12T14:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: Search doesn't show results if for the same node are present two type of alarms</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-doesn-t-show-results-if-for-the-same-node-are-present-two/m-p/304218#M91481</link>
      <description>&lt;P&gt;It doesn't work. &lt;BR /&gt;
The search include all alarms (FAN-IS and SRMISS)&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 14:53:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-doesn-t-show-results-if-for-the-same-node-are-present-two/m-p/304218#M91481</guid>
      <dc:creator>ngerosa</dc:creator>
      <dc:date>2017-07-12T14:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: Search doesn't show results if for the same node are present two type of alarms</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-doesn-t-show-results-if-for-the-same-node-are-present-two/m-p/304219#M91482</link>
      <description>&lt;P&gt;How about this? &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Your query giving fields _time ALARM NODE
 | eventstats values(ALARM) as alarms by NODE
 | eval shouldKeep=if(isnotnull(mvfind(alarms,"FAN-IS")) AND isnotnull(mvfind(alarms,"SRMISS")),"No","Yes")
 | where shouldKeep="Yes"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If this doesnt work then remove last where clause and see if the values are coming per your requirement (manual check).&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 14:57:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-doesn-t-show-results-if-for-the-same-node-are-present-two/m-p/304219#M91482</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-07-12T14:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Search doesn't show results if for the same node are present two type of alarms</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-doesn-t-show-results-if-for-the-same-node-are-present-two/m-p/304220#M91483</link>
      <description>&lt;P&gt;It works!!&lt;BR /&gt;
Thank you very much!&lt;BR /&gt;
If you modify the answer I'll accept!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 15:22:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-doesn-t-show-results-if-for-the-same-node-are-present-two/m-p/304220#M91483</guid>
      <dc:creator>ngerosa</dc:creator>
      <dc:date>2017-07-12T15:22:13Z</dc:date>
    </item>
  </channel>
</rss>

