<?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 correlate multiple transactions as a single event? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-correlate-multiple-transactions-as-a-single-event/m-p/297100#M89617</link>
    <description>&lt;P&gt;it might be easier if you provide examples of different events and we can write the sample spl for you&lt;/P&gt;</description>
    <pubDate>Wed, 29 Mar 2017 10:34:54 GMT</pubDate>
    <dc:creator>koshyk</dc:creator>
    <dc:date>2017-03-29T10:34:54Z</dc:date>
    <item>
      <title>How to correlate multiple transactions as a single event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-correlate-multiple-transactions-as-a-single-event/m-p/297099#M89616</link>
      <description>&lt;P&gt;I have defined transactions to determine the cut-off times for our telecom links. We have two telecom operators per site and I want to differentiate between links of cuts and the loss of a site in case of power failure for example. I use the start time to count the number of transactions per site. When the number is 1, it is a loss of link and when the number is 2, it is a loss of site. Only a few times the start time is not exactly the same with 1 second deviation therefore result 2 transactions. How do I correlate both transactions as the same event?&lt;BR /&gt;
Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2017 10:09:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-correlate-multiple-transactions-as-a-single-event/m-p/297099#M89616</guid>
      <dc:creator>erwan_raulet</dc:creator>
      <dc:date>2017-03-29T10:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to correlate multiple transactions as a single event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-correlate-multiple-transactions-as-a-single-event/m-p/297100#M89617</link>
      <description>&lt;P&gt;it might be easier if you provide examples of different events and we can write the sample spl for you&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2017 10:34:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-correlate-multiple-transactions-as-a-single-event/m-p/297100#M89617</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2017-03-29T10:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to correlate multiple transactions as a single event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-correlate-multiple-transactions-as-a-single-event/m-p/297101#M89618</link>
      <description>&lt;P&gt;Here is my search to determine transactions:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;host="10.xxx.yyy.*" ospf eventtype="ospf_down*" OR eventtype="ospf_full" Base &lt;BR /&gt;
| eval start_Time=if(eventtype="ospf_down" OR eventtype="ospf_down_if",_time,null()) &lt;BR /&gt;
| eval end_Time=if(eventtype="ospf_full",_time,null()) &lt;BR /&gt;
| transaction host VoisinIP Interface startswith=eval(eventtype="ospf_down" OR eventtype="ospf_down_if") endswith=eval(eventtype="ospf_full") &lt;BR /&gt;
| convert timeformat="%d/%m/%Y %H:%M:%S" ctime(start_Time) as Debut &lt;BR /&gt;
| convert timeformat="%d/%m/%Y %H:%M:%S" ctime(end_Time) as Fin &lt;BR /&gt;
| eval "Duree Perte"=tostring(duration,"duration")&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;And the result is:&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;Mar  9 07:27:39 10.xxx.yyy.61 Mar  9 07:27:39 10.xxx.yyy.61 TH2PE1: 525776 Base OSPF-WARNING-tmnxOspfNgNbrStateChange-2042 [VR:  1 OSPFv2 (0) ]:  LCL_RTR_ID 10.xxx.yyy.61: Neighbor 10.aaa.bbb.1 on if-MTP1-1 router state changed to down (event BFD_DOWN)&lt;BR /&gt;
Mar  9 07:33:05 10.xxx.yyy.61 Mar  9 07:33:05 10.xxx.yyy.61 TH2PE1: 525790 Base OSPF-WARNING-tmnxOspfNgNbrStateChange-2042 [VR:  1 OSPFv2 (0) ]:  LCL_RTR_ID 10.xxx.yyy.61: Neighbor 10.aaa.bbb.1 on if-MTP1-1 router state changed to full (event EXC_DONE)&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;Mar  9 07:27:38 10.xxx.yyy.61 Mar  9 07:27:38 10.xxx.yyy.61 TH2PE1: 525744 Base OSPF-WARNING-tmnxOspfNgNbrStateChange-2042 [VR:  1 OSPFv2 (0) ]:  LCL_RTR_ID 10.xxx.yyy.61: Neighbor 10.aaa.bbb.2 on if-MTP1-2 router state changed to down (event BFD_DOWN)&lt;BR /&gt;
Mar  9 07:33:04 10.xxx.yyy.61 Mar  9 07:33:04 10.xxx.yyy.61 TH2PE1: 525788 Base OSPF-WARNING-tmnxOspfNgNbrStateChange-2042 [VR:  1 OSPFv2 (0) ]:  LCL_RTR_ID 10.xxx.yyy.61: Neighbor 10.aaa.bbb.2 on if-MTP1-2 router state changed to full (event EXC_DONE)&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;I hope this will help you better understand my problem&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:25:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-correlate-multiple-transactions-as-a-single-event/m-p/297101#M89618</guid>
      <dc:creator>erwan_raulet</dc:creator>
      <dc:date>2020-09-29T13:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to correlate multiple transactions as a single event?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-correlate-multiple-transactions-as-a-single-event/m-p/297102#M89619</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host="10.xxx.yyy.*" ospf eventtype="ospf_down*" OR eventtype="ospf_full" Base
| eval start_Time=if(eventtype="ospf_down" OR eventtype="ospf_down_if",_time,null())
| eval end_Time=if(eventtype="ospf_full",_time,null())

| streamstats count(eval(eventtype="ospf_full")) AS sessionID BY host VoisinIP Interface
| stats range(_time) AS duration count values(*) AS * BY host VoisinIP Interface sessionID 

| convert timeformat="%d/%m/%Y %H:%M:%S" ctime(start_Time) as Debut
| convert timeformat="%d/%m/%Y %H:%M:%S" ctime(end_Time) as Fin
| eval "Duree Perte"=tostring(duration,"duration")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Sep 2017 03:25:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-correlate-multiple-transactions-as-a-single-event/m-p/297102#M89619</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-09-11T03:25:42Z</dc:date>
    </item>
  </channel>
</rss>

