<?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 filter data in Splunk Enterprise Security</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/filter-data/m-p/510114#M9035</link>
    <description>Hello everyone, I have a splunk query that returns the connection ranges with the start and end of the connection. Below is an example. user DateMin DateMax 1234 2020-07-14 04:54:21 2020-07-14 06:02:54 I would just like to display connections that last at least 6 minutes. Thanks.</description>
    <pubDate>Mon, 20 Jul 2020 20:22:07 GMT</pubDate>
    <dc:creator>numeroinconnu12</dc:creator>
    <dc:date>2020-07-20T20:22:07Z</dc:date>
    <item>
      <title>filter data</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/filter-data/m-p/510114#M9035</link>
      <description>Hello everyone, I have a splunk query that returns the connection ranges with the start and end of the connection. Below is an example. user DateMin DateMax 1234 2020-07-14 04:54:21 2020-07-14 06:02:54 I would just like to display connections that last at least 6 minutes. Thanks.</description>
      <pubDate>Mon, 20 Jul 2020 20:22:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/filter-data/m-p/510114#M9035</guid>
      <dc:creator>numeroinconnu12</dc:creator>
      <dc:date>2020-07-20T20:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: filter data</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/filter-data/m-p/510118#M9036</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/216298"&gt;@numeroinconnu12&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;follow these steps&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;convert the timestamps into epoch, eval DateMin=strptime(DateMin, "%Y-%m-%d %H:%M:%S")&lt;/LI&gt;&lt;LI&gt;difference between the two epoch times will be in seconds, eval Diff=(DateMax-DateMin)&lt;/LI&gt;&lt;LI&gt;convert the difference to min, eval Diff=round(Diff/60,2)&lt;/LI&gt;&lt;LI&gt;add a filter using where command, where Diff &amp;gt; 6&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;adding all the above steps together&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;eval DateMin=strptime(DateMin, "%Y-%m-%d %H:%M:%S"), DateMax=strptime(DateMax, "%Y-%m-%d %H:%M:%S") | eval Diff=round((DateMax-DateMin)/60,2) | where Diff &amp;gt; 6&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can merge them to a single eval. But I though this will give you good clarity.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2020 20:44:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/filter-data/m-p/510118#M9036</guid>
      <dc:creator>anilchaithu</dc:creator>
      <dc:date>2020-07-20T20:44:03Z</dc:date>
    </item>
  </channel>
</rss>

