<?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 Map events using lat long in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Map-events-using-lat-long/m-p/495763#M46072</link>
    <description>&lt;P&gt;Below is my sample event-&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;29-09-2019 8:00:00 Pullout longitude latitude
29-09-2019 8:02:10 loss  longitude latitude
29-09-2019 8:02:55 restore longitude latitude
29-09-2019 8:09:00 loss longitude latitude
29-09-2019 8:12:10 restore longitude latitude
29-09-2019 8:54:10 PullIn longitude latitude
29-09-2019 9:02:10 loss longitude latitude
29-09-2019 9:02:55 restore longitude latitude
29-09-2019 9:09:00 loss longitude latitude
29-09-2019 8:12:10 restore longitude latitude
29-09-2019 9:00:00 Pullout longitude latitude
...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here I want to group startswith="pullout" to endswith="pullIn"  but only take loss events where loss and restoration time is more than 1 min and exclude less than 1 min and plot loss on map using latitude and longitude.&lt;BR /&gt;
any help will be appreciated. I tried transaction command but unable to succeed&lt;BR /&gt;
thanks.&lt;/P&gt;</description>
    <pubDate>Sun, 29 Sep 2019 15:19:45 GMT</pubDate>
    <dc:creator>ips_mandar</dc:creator>
    <dc:date>2019-09-29T15:19:45Z</dc:date>
    <item>
      <title>Map events using lat long</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Map-events-using-lat-long/m-p/495763#M46072</link>
      <description>&lt;P&gt;Below is my sample event-&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;29-09-2019 8:00:00 Pullout longitude latitude
29-09-2019 8:02:10 loss  longitude latitude
29-09-2019 8:02:55 restore longitude latitude
29-09-2019 8:09:00 loss longitude latitude
29-09-2019 8:12:10 restore longitude latitude
29-09-2019 8:54:10 PullIn longitude latitude
29-09-2019 9:02:10 loss longitude latitude
29-09-2019 9:02:55 restore longitude latitude
29-09-2019 9:09:00 loss longitude latitude
29-09-2019 8:12:10 restore longitude latitude
29-09-2019 9:00:00 Pullout longitude latitude
...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here I want to group startswith="pullout" to endswith="pullIn"  but only take loss events where loss and restoration time is more than 1 min and exclude less than 1 min and plot loss on map using latitude and longitude.&lt;BR /&gt;
any help will be appreciated. I tried transaction command but unable to succeed&lt;BR /&gt;
thanks.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Sep 2019 15:19:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Map-events-using-lat-long/m-p/495763#M46072</guid>
      <dc:creator>ips_mandar</dc:creator>
      <dc:date>2019-09-29T15:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Map events using lat long</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Map-events-using-lat-long/m-p/495764#M46073</link>
      <description>&lt;P&gt;Please explain "loss and restoration time".  Also, what SPL have you tried already?&lt;/P&gt;</description>
      <pubDate>Sun, 29 Sep 2019 19:34:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Map-events-using-lat-long/m-p/495764#M46073</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-09-29T19:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: Map events using lat long</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Map-events-using-lat-long/m-p/495765#M46074</link>
      <description>&lt;P&gt;loss and restoration time defines GPS unit lost connection and restored connection.&lt;BR /&gt;
I tried &lt;CODE&gt;...|transaction source startswith="Pullout" endswith="PullIn"&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2019 05:07:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Map-events-using-lat-long/m-p/495765#M46074</guid>
      <dc:creator>ips_mandar</dc:creator>
      <dc:date>2019-09-30T05:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: Map events using lat long</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Map-events-using-lat-long/m-p/495766#M46075</link>
      <description>&lt;P&gt;Hi ips_mandar&lt;BR /&gt;
try something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| your_search
| transaction source startswith="loss" endswith="restore"
| where duration&amp;gt;60
| table duration latitude longitude
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2019 07:24:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Map-events-using-lat-long/m-p/495766#M46075</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-09-30T07:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: Map events using lat long</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Map-events-using-lat-long/m-p/495767#M46076</link>
      <description>&lt;P&gt;Thanks but As I mentioned I want events falling between "PullOut" to "PullIn" only and I want to plot loss only on map.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2019 10:03:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Map-events-using-lat-long/m-p/495767#M46076</guid>
      <dc:creator>ips_mandar</dc:creator>
      <dc:date>2019-09-30T10:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: Map events using lat long</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Map-events-using-lat-long/m-p/495768#M46077</link>
      <description>&lt;P&gt;Hi ips_mandar&lt;/P&gt;

&lt;P&gt;Can you provide more inputs on this? The way I see it, it goes along the lines of &lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Create a transaction starting with Pullout and ending with PullIn&lt;/LI&gt;
&lt;LI&gt;Within the events in the transaction, compute difference between loss and restore events and retain only those where there is a loss of &amp;gt; 1 minute. &lt;STRONG&gt;Is that to be accumulated within a transaction?&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;i.e in the sample data, Should (8:02:55 - 8:02:10) 45 seconds be a separate event or accumulate losses within a transaction?&lt;/P&gt;

&lt;P&gt;29-09-2019 8:00:00 Pullout longitude latitude&lt;BR /&gt;
 29-09-2019 8:02:10 loss  longitude latitude&lt;BR /&gt;
 29-09-2019 8:02:55 restore longitude latitude&lt;BR /&gt;
 29-09-2019 8:09:00 loss longitude latitude&lt;BR /&gt;
 29-09-2019 8:12:10 restore longitude latitude&lt;BR /&gt;
 29-09-2019 8:54:10 PullIn longitude latitude&lt;/P&gt;

&lt;P&gt;Depending on the definition, the approach will change. It almost seems like a transaction within a transaction. Check out these links if that's what you are trying to achieve.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/30980/nested-transactions.html"&gt;https://answers.splunk.com/answers/30980/nested-transactions.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://www.splunk.com/blog/2011/01/11/maintaining-state-of-the-union.html"&gt;https://www.splunk.com/blog/2011/01/11/maintaining-state-of-the-union.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2019 11:21:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Map-events-using-lat-long/m-p/495768#M46077</guid>
      <dc:creator>vik_splunk</dc:creator>
      <dc:date>2019-09-30T11:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: Map events using lat long</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Map-events-using-lat-long/m-p/495769#M46078</link>
      <description>&lt;P&gt;@vik_splunk you understand correctly I want transaction within transaction.&lt;BR /&gt;
In above sample data I am more concern about (8:09:00 - 8:12:10) i.e. loss happening for more than 1 min. and I don't want 45 sec (8:02:55 - 8:02:10).&lt;BR /&gt;
I wanted the loss happening for more than 1 min and neglect which are less than 1 min and then plot loss on map. How can I achieve this?&lt;BR /&gt;
I did checked these link but unable to understand..can you please explain in my case how can I achieve it?&lt;BR /&gt;
Thanks,&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2019 06:48:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Map-events-using-lat-long/m-p/495769#M46078</guid>
      <dc:creator>ips_mandar</dc:creator>
      <dc:date>2019-10-01T06:48:38Z</dc:date>
    </item>
  </channel>
</rss>

