<?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: scom: how to remove resolved events that are monitored using dedup in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Scom-How-to-remove-resolved-events-that-are-monitored-using/m-p/591626#M205954</link>
    <description>&lt;P&gt;I have been brainstorming the same issue. The issue is when the alert is closed then reopened it wont recongnise the same event id as the id seems to change, so if it flaps youll get alert storms. My solution is to use the monitoringobjectid and the name together. The monitoringobjectid is unique to each object but can have multiple different alerts raised against it. So using the name you ensure you only get unique events for that object. This will help with Maintenance Mode and alert storms. Even with disk alerts that seem to continue raising events at certain intervals of disk usage have different ids.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Mar 2022 21:23:47 GMT</pubDate>
    <dc:creator>johnrbhancock</dc:creator>
    <dc:date>2022-03-30T21:23:47Z</dc:date>
    <item>
      <title>Scom: How to remove resolved events that are monitored using dedup?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Scom-How-to-remove-resolved-events-that-are-monitored-using/m-p/541354#M153270</link>
      <description>&lt;P&gt;We are ingesting scom events&lt;/P&gt;
&lt;P&gt;When an alert is triggered it is assigned an id (the earliest event pictured) and we have created a dashboard of alerts that are in status new.&lt;/P&gt;
&lt;P&gt;This issue we have is some of the alerts have actually been resolved but the logs that show an alert as resolved show the id as "monitoringalertid" not "id" so the dedup "id" isn't working&lt;/P&gt;
&lt;P&gt;We are having issues joining these alerts to get the latest status and remove alert if it has been solved.&lt;/P&gt;
&lt;P&gt;The only value to match these events is the id/monitoringalertid.&lt;/P&gt;
&lt;P&gt;Anyone know a way to match these events.&lt;/P&gt;
&lt;P&gt;TIA&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="issue.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/13069i0F22376064A31899/image-size/large?v=v2&amp;amp;px=999" role="button" title="issue.png" alt="issue.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 22:25:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Scom-How-to-remove-resolved-events-that-are-monitored-using/m-p/541354#M153270</guid>
      <dc:creator>nathanluke86</dc:creator>
      <dc:date>2022-03-30T22:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: scom: how to remove resolved events that are monitored using dedup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Scom-How-to-remove-resolved-events-that-are-monitored-using/m-p/541367#M153273</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/192656"&gt;@nathanluke86&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You can use&amp;nbsp;coalesce to set id=monitoringalertid where id is null.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval id=coalesce(id, monitoringalertid)
| dedup id&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;More info on coalesce here:&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.1.2/SearchReference/ConditionalFunctions#coalesce.28X.2C....29" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.1.2/SearchReference/ConditionalFunctions#coalesce.28X.2C....29&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If this reply helps you, an upvote/like would be appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 15:41:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Scom-How-to-remove-resolved-events-that-are-monitored-using/m-p/541367#M153273</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2021-02-25T15:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: scom: how to remove resolved events that are monitored using dedup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Scom-How-to-remove-resolved-events-that-are-monitored-using/m-p/541478#M153307</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/129090"&gt;@manjunathmeti&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Tried using coalesce but this doesn't seem to work.&lt;/P&gt;&lt;P&gt;I have noticed that the logs that have monitoringalertid field that matches the original id also have a field id which does not match the original id.&lt;/P&gt;&lt;P&gt;This might be causing the issue with coalesce.&lt;/P&gt;&lt;P&gt;Is there another way to match id with monitoringalertid and if latest status is closed then ignore.&lt;/P&gt;&lt;P&gt;TIA.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 08:47:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Scom-How-to-remove-resolved-events-that-are-monitored-using/m-p/541478#M153307</guid>
      <dc:creator>nathanluke86</dc:creator>
      <dc:date>2021-02-26T08:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: scom: how to remove resolved events that are monitored using dedup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Scom-How-to-remove-resolved-events-that-are-monitored-using/m-p/541508#M153318</link>
      <description>&lt;P&gt;you may be able to just swap the order in the coalesce statement - so that the monitoring id will be used if it exists, then id would be checked for next.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 12:47:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Scom-How-to-remove-resolved-events-that-are-monitored-using/m-p/541508#M153318</guid>
      <dc:creator>maciep</dc:creator>
      <dc:date>2021-02-26T12:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: scom: how to remove resolved events that are monitored using dedup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Scom-How-to-remove-resolved-events-that-are-monitored-using/m-p/541532#M153326</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/190949"&gt;@maciep&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/129090"&gt;@manjunathmeti&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this working now using:&lt;/P&gt;&lt;P&gt;| eval logID = coalesce('monitoringalertid','id') |transaction logID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for all the help&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 15:19:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Scom-How-to-remove-resolved-events-that-are-monitored-using/m-p/541532#M153326</guid>
      <dc:creator>nathanluke86</dc:creator>
      <dc:date>2021-02-26T15:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: scom: how to remove resolved events that are monitored using dedup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Scom-How-to-remove-resolved-events-that-are-monitored-using/m-p/591626#M205954</link>
      <description>&lt;P&gt;I have been brainstorming the same issue. The issue is when the alert is closed then reopened it wont recongnise the same event id as the id seems to change, so if it flaps youll get alert storms. My solution is to use the monitoringobjectid and the name together. The monitoringobjectid is unique to each object but can have multiple different alerts raised against it. So using the name you ensure you only get unique events for that object. This will help with Maintenance Mode and alert storms. Even with disk alerts that seem to continue raising events at certain intervals of disk usage have different ids.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 21:23:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Scom-How-to-remove-resolved-events-that-are-monitored-using/m-p/591626#M205954</guid>
      <dc:creator>johnrbhancock</dc:creator>
      <dc:date>2022-03-30T21:23:47Z</dc:date>
    </item>
  </channel>
</rss>

