<?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 Time matching w/ a +/- 5 min window in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Time-matching-w-a-5-min-window/m-p/518743#M145970</link>
    <description>&lt;P&gt;Greetings Splunkers,&lt;BR /&gt;&lt;BR /&gt;I have a lookup file that has a list of set jobs with a frequency timestamp (e.g. Mon-Fri @ 3:30) of when the job should be seen within Splunk.&amp;nbsp; I'm wanting to create an eval that will allow me to match the index time of an event/job with its frequency timestamp.&lt;/P&gt;&lt;P&gt;The dilemma I'm having is incorporating a +/- 5 min time span into the matching criteria.&amp;nbsp; Any assistance in figuring this out would be greatly appreciated.&lt;/P&gt;</description>
    <pubDate>Wed, 09 Sep 2020 17:46:08 GMT</pubDate>
    <dc:creator>cquinney</dc:creator>
    <dc:date>2020-09-09T17:46:08Z</dc:date>
    <item>
      <title>Time matching w/ a +/- 5 min window</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-matching-w-a-5-min-window/m-p/518743#M145970</link>
      <description>&lt;P&gt;Greetings Splunkers,&lt;BR /&gt;&lt;BR /&gt;I have a lookup file that has a list of set jobs with a frequency timestamp (e.g. Mon-Fri @ 3:30) of when the job should be seen within Splunk.&amp;nbsp; I'm wanting to create an eval that will allow me to match the index time of an event/job with its frequency timestamp.&lt;/P&gt;&lt;P&gt;The dilemma I'm having is incorporating a +/- 5 min time span into the matching criteria.&amp;nbsp; Any assistance in figuring this out would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2020 17:46:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-matching-w-a-5-min-window/m-p/518743#M145970</guid>
      <dc:creator>cquinney</dc:creator>
      <dc:date>2020-09-09T17:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: Time matching w/ a +/- 5 min window</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-matching-w-a-5-min-window/m-p/518745#M145971</link>
      <description>&lt;P&gt;The +/- 5 minute bit is easy - just add or subtract 300 seconds from the computed timestamp.&amp;nbsp; IMO, the hard part is converting "Mon-Fri&amp;nbsp;@ 3:30" into a timestamp.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2020 18:04:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-matching-w-a-5-min-window/m-p/518745#M145971</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-09-09T18:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Time matching w/ a +/- 5 min window</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-matching-w-a-5-min-window/m-p/518746#M145972</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Can you possibly provide an example of how you'd incorporate your suggestion into the eval?&amp;nbsp; Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 01:57:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-matching-w-a-5-min-window/m-p/518746#M145972</guid>
      <dc:creator>cquinney</dc:creator>
      <dc:date>2020-09-10T01:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: Time matching w/ a +/- 5 min window</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-matching-w-a-5-min-window/m-p/518872#M146057</link>
      <description>&lt;LI-CODE lang="markup"&gt;| eval start=computedTime - 300, end=computedTime + 300&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 10 Sep 2020 12:41:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-matching-w-a-5-min-window/m-p/518872#M146057</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-09-10T12:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: Time matching w/ a +/- 5 min window</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-matching-w-a-5-min-window/m-p/518907#M146065</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the advice, I ended up incorporating your suggestion into my query as such:&lt;BR /&gt;&lt;BR /&gt;| eval TimeMatch=if(((_time &amp;gt;= _time-300 OR _time &amp;lt;= _time+300) AND _time=ExptectedTime), "Match", "No Match")&lt;/P&gt;&lt;P&gt;This gave me the results I was hoping for.&amp;nbsp; Thank you again!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 15:59:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-matching-w-a-5-min-window/m-p/518907#M146065</guid>
      <dc:creator>cquinney</dc:creator>
      <dc:date>2020-09-10T15:59:43Z</dc:date>
    </item>
  </channel>
</rss>

