<?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 do you create a dashboard by event correlation? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-create-a-dashboard-by-event-correlation/m-p/381535#M24954</link>
    <description>&lt;P&gt;i think its working , thanks a heap for this , i will test it for next 24hours to verify&lt;/P&gt;</description>
    <pubDate>Sun, 11 Nov 2018 09:50:43 GMT</pubDate>
    <dc:creator>saadi381</dc:creator>
    <dc:date>2018-11-11T09:50:43Z</dc:date>
    <item>
      <title>How do you create a dashboard by event correlation?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-create-a-dashboard-by-event-correlation/m-p/381531#M24950</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;Apologies if this has been asked before.&lt;/P&gt;

&lt;P&gt;So here is what i am trying to achieve &lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Catch the log and create an event like when bgp goes down (easy can search and filter them out)&lt;/LI&gt;
&lt;LI&gt;Catch the log and create if above event is clear , will get a log message with status Up &lt;/LI&gt;
&lt;LI&gt;Correlate both events&lt;/LI&gt;
&lt;LI&gt;Display in a dashboard when event happened and keep it there unless the clear event is not received &lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;So basically a dashboard where i can see when bgp goes down and if it is down , if restored the event to disappear from dashboard. &lt;/P&gt;

&lt;P&gt;Not sure if possible in Splunk and how to do it&lt;/P&gt;

&lt;P&gt;Here are sample logs which i need to correlate&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Nov 11 15:39:05 hostanme1 -  RPD_BGP_NEIGHBOR_STATE_CHANGED: BGP peer 192.168.200.146 (External AS 12345) changed state from Established to Idle (event HoldTime) (instance vrf-1234)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;After above log i need to display an event in dashboard&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Nov 11 15:43:00 hostanme1 -  RPD_BGP_NEIGHBOR_STATE_CHANGED: BGP peer 192.168.200.146 (External AS 12345) changed state from OpenConfirm to Established (event RecvKeepAlive) (instance vrf-1234)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;After above log i want to clear the event &lt;/P&gt;</description>
      <pubDate>Sat, 10 Nov 2018 22:21:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-create-a-dashboard-by-event-correlation/m-p/381531#M24950</guid>
      <dc:creator>saadi381</dc:creator>
      <dc:date>2018-11-10T22:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: How do you create a dashboard by event correlation?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-create-a-dashboard-by-event-correlation/m-p/381532#M24951</link>
      <description>&lt;P&gt;@saadi381,&lt;/P&gt;

&lt;P&gt;Its possible. Do you have a unique field in both events to correlate them (router id or something)?  Would be helpful if you could provide some sample events (mask any confidential data). Also how do you want to represent  in the dashboard? Just as events or some status indicator?&lt;/P&gt;</description>
      <pubDate>Sun, 11 Nov 2018 06:27:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-create-a-dashboard-by-event-correlation/m-p/381532#M24951</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-11-11T06:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do you create a dashboard by event correlation?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-create-a-dashboard-by-event-correlation/m-p/381533#M24952</link>
      <description>&lt;P&gt;added sample logs&lt;/P&gt;</description>
      <pubDate>Sun, 11 Nov 2018 06:43:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-create-a-dashboard-by-event-correlation/m-p/381533#M24952</guid>
      <dc:creator>saadi381</dc:creator>
      <dc:date>2018-11-11T06:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: How do you create a dashboard by event correlation?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-create-a-dashboard-by-event-correlation/m-p/381534#M24953</link>
      <description>&lt;P&gt;@saadi381,&lt;/P&gt;

&lt;P&gt;Assuming IP can be used to correlate the events, give this a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"your base search"
|rex field=_raw "BGP peer (?&amp;lt;IP&amp;gt;\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3})"
|rex field=_raw "from \w+\sto\s(?&amp;lt;status&amp;gt;\w+)"
|stats count,latest(_raw) as _raw,latest(status) as Status by IP
|where count&amp;lt;2 AND Status!="Established"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This should leave with only idle IPs. Test it by removing the last &lt;CODE&gt;where&lt;/CODE&gt; clause.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Nov 2018 07:47:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-create-a-dashboard-by-event-correlation/m-p/381534#M24953</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-11-11T07:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do you create a dashboard by event correlation?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-create-a-dashboard-by-event-correlation/m-p/381535#M24954</link>
      <description>&lt;P&gt;i think its working , thanks a heap for this , i will test it for next 24hours to verify&lt;/P&gt;</description>
      <pubDate>Sun, 11 Nov 2018 09:50:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-you-create-a-dashboard-by-event-correlation/m-p/381535#M24954</guid>
      <dc:creator>saadi381</dc:creator>
      <dc:date>2018-11-11T09:50:43Z</dc:date>
    </item>
  </channel>
</rss>

