<?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: SNMP traps received by Splunk, send notification only if clear SNMP trap not received within 5 minutes. in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/SNMP-traps-received-by-Splunk-send-notification-only-if-clear/m-p/153794#M31270</link>
    <description>&lt;P&gt;Not having access to sample data I am going to suggest something to look at. Try changing your transaction command. The reference for the command is at &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Transaction?r=splunky"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Transaction?r=splunky&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Try something like this:&lt;BR /&gt;
| transaction maxspan=5m maxpause=5m keepevicted=true startswith=IDtrap endswith=IDtrapclear | search closed_txn=0&lt;/P&gt;

&lt;P&gt;If it works what you are telling it is a transaction starts with the trap and ends with the clear. Then you search for non closed transactions which means ones that start with a trap and don't end with a clear.&lt;/P&gt;</description>
    <pubDate>Thu, 24 Jul 2014 03:10:11 GMT</pubDate>
    <dc:creator>starcher</dc:creator>
    <dc:date>2014-07-24T03:10:11Z</dc:date>
    <item>
      <title>SNMP traps received by Splunk, send notification only if clear SNMP trap not received within 5 minutes.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/SNMP-traps-received-by-Splunk-send-notification-only-if-clear/m-p/153793#M31269</link>
      <description>&lt;P&gt;All,&lt;/P&gt;

&lt;P&gt;I'm wondering if it is possible to have Splunk to monitor SNMP traps, but only to send a notification out if he receives a specific SNMP trap ID without receiving the clear SNMP trap within 5 minutes. If it does receive the clear then Splunk should not notify outside.&lt;/P&gt;

&lt;P&gt;Any help would be appreciated.&lt;/P&gt;

&lt;P&gt;I can put the command:&lt;BR /&gt;
host="myhost.localdomain" earliest=-5m | transaction maxspan=5m maxpause=5m | search IDtrap AND NOT IDtrapclear&lt;/P&gt;

&lt;P&gt;But with this command as soon as the SNMP Trap will be received, notification will be sent without waiting for a possible clear.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jul 2014 08:47:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/SNMP-traps-received-by-Splunk-send-notification-only-if-clear/m-p/153793#M31269</guid>
      <dc:creator>jean2</dc:creator>
      <dc:date>2014-07-23T08:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: SNMP traps received by Splunk, send notification only if clear SNMP trap not received within 5 minutes.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/SNMP-traps-received-by-Splunk-send-notification-only-if-clear/m-p/153794#M31270</link>
      <description>&lt;P&gt;Not having access to sample data I am going to suggest something to look at. Try changing your transaction command. The reference for the command is at &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Transaction?r=splunky"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Transaction?r=splunky&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Try something like this:&lt;BR /&gt;
| transaction maxspan=5m maxpause=5m keepevicted=true startswith=IDtrap endswith=IDtrapclear | search closed_txn=0&lt;/P&gt;

&lt;P&gt;If it works what you are telling it is a transaction starts with the trap and ends with the clear. Then you search for non closed transactions which means ones that start with a trap and don't end with a clear.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jul 2014 03:10:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/SNMP-traps-received-by-Splunk-send-notification-only-if-clear/m-p/153794#M31270</guid>
      <dc:creator>starcher</dc:creator>
      <dc:date>2014-07-24T03:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: SNMP traps received by Splunk, send notification only if clear SNMP trap not received within 5 minutes.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/SNMP-traps-received-by-Splunk-send-notification-only-if-clear/m-p/153795#M31271</link>
      <description>&lt;P&gt;Hi Startcher,&lt;/P&gt;

&lt;P&gt;Actually the command works fine but only after the clear is received. I have the same issue. A notification is fired as soon as the trap is received, without waiting for the clear to appear in the 5m window.&lt;/P&gt;

&lt;P&gt;Any idea why splunk doesn't wait for the delay to timeout?&lt;/P&gt;

&lt;P&gt;Thanks for the help.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jul 2014 09:23:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/SNMP-traps-received-by-Splunk-send-notification-only-if-clear/m-p/153795#M31271</guid>
      <dc:creator>jean2</dc:creator>
      <dc:date>2014-07-24T09:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: SNMP traps received by Splunk, send notification only if clear SNMP trap not received within 5 minutes.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/SNMP-traps-received-by-Splunk-send-notification-only-if-clear/m-p/153796#M31272</link>
      <description>&lt;P&gt;Hi Startcher,&lt;/P&gt;

&lt;P&gt;Actually the command works fine but only after the clear is received. I have the same issue. A notification is fired as soon as the trap is received, without waiting for the clear to appear in the 5m window.&lt;/P&gt;

&lt;P&gt;Any idea why splunk doesn't wait for the delay to timeout?&lt;/P&gt;

&lt;P&gt;Thanks for the help.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jul 2014 14:36:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/SNMP-traps-received-by-Splunk-send-notification-only-if-clear/m-p/153796#M31272</guid>
      <dc:creator>jean2</dc:creator>
      <dc:date>2014-07-25T14:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: SNMP traps received by Splunk, send notification only if clear SNMP trap not received within 5 minutes.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/SNMP-traps-received-by-Splunk-send-notification-only-if-clear/m-p/153797#M31273</link>
      <description>&lt;P&gt;Not sure. If you are running that as a real time search that might be issue.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jul 2014 15:13:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/SNMP-traps-received-by-Splunk-send-notification-only-if-clear/m-p/153797#M31273</guid>
      <dc:creator>starcher</dc:creator>
      <dc:date>2014-07-25T15:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: SNMP traps received by Splunk, send notification only if clear SNMP trap not received within 5 minutes.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/SNMP-traps-received-by-Splunk-send-notification-only-if-clear/m-p/153798#M31274</link>
      <description>&lt;P&gt;Actually it doesn't work for Real-Time All Time and Real-Time 1 minute window. But as well for All time search.&lt;/P&gt;

&lt;P&gt;Any workaround to have an alert send if this search returns a result after a selected time window ?&lt;/P&gt;

&lt;P&gt;Thanks for your help&lt;/P&gt;

&lt;P&gt;Command:&lt;BR /&gt;
host="myhost.localdomain" AND "2001" earliest=-1m | transaction source startswith="2001" endswith="2002" keepevicted=true maxspan=1m maxpause=1m | search closed_txn=0&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jul 2014 16:05:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/SNMP-traps-received-by-Splunk-send-notification-only-if-clear/m-p/153798#M31274</guid>
      <dc:creator>jean2</dc:creator>
      <dc:date>2014-07-25T16:05:41Z</dc:date>
    </item>
  </channel>
</rss>

