<?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: Make eval time minutes in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-eval-time-minutes/m-p/590856#M205696</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;It still isn't working. The alert subtracts from whenever the search is ran &amp;amp; the "late" variable, then outputs it as latency. Rather than alerting if there is a delay &amp;gt;60min.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 25 Mar 2022 12:47:12 GMT</pubDate>
    <dc:creator>troy44112</dc:creator>
    <dc:date>2022-03-25T12:47:12Z</dc:date>
    <item>
      <title>How to make eval time minutes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-eval-time-minutes/m-p/590250#M205493</link>
      <description>&lt;P&gt;What do I need to add to this search, to make this search&amp;nbsp; | where Need &amp;gt;= 60min&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| tstats max(_indextime) AS Late where earliest=-24h latest=now (index=bluff) by sourcetype
| eval CurrentTime=now()
| eval Need = CurrentTime - Late, LastIngestionTime=strftime(Late,"%Y/%m/%d %H:%M:%S %Z"), CurrentTime =strftime(CurrentTime,"%Y/%m/%d %H:%M:%S %Z")
| table sourcetype, LastIngestionTime, CurrentTime, Need
| rename LastIngestionTime as "Last", CurrentTime AS "Search time", Need AS "Latency in Minutes"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 04:51:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-eval-time-minutes/m-p/590250#M205493</guid>
      <dc:creator>troy44112</dc:creator>
      <dc:date>2022-03-23T04:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Make eval time minutes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-eval-time-minutes/m-p/590251#M205494</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/223531"&gt;@troy44112&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;did you tried something like this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats max(_indextime) AS Late where earliest=-24h latest=now (index=bluff) by sourcetype
| eval CurrentTime=now()
| eval Need = CurrentTime - Late, LastIngestionTime=strftime(Late,"%Y/%m/%d %H:%M:%S %Z"), CurrentTime =strftime(CurrentTime,"%Y/%m/%d %H:%M:%S %Z")
| where Need&amp;gt;=3600
| table sourcetype, LastIngestionTime, CurrentTime, Need
| rename LastIngestionTime as "Last", CurrentTime AS "Search time", Need AS "Latency in Minutes"&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 16:05:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-eval-time-minutes/m-p/590251#M205494</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-03-22T16:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: Make eval time minutes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-eval-time-minutes/m-p/590252#M205495</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp; What does the 3600 represent?&lt;BR /&gt;I am trying to figure out the calculation.&lt;BR /&gt;ie: if I want to change it to 60min, 45min, 90min etc..&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 16:11:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-eval-time-minutes/m-p/590252#M205495</guid>
      <dc:creator>troy44112</dc:creator>
      <dc:date>2022-03-22T16:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: Make eval time minutes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-eval-time-minutes/m-p/590254#M205497</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/223531"&gt;@troy44112&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in your query&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;| eval Need = CurrentTime - Late&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;since the subtraction is in epoch time format it would give the values in seconds &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;|eval need = (CurrentTime-late)/60&amp;nbsp; use something like this to convert it into minutes and then use the where clause&amp;nbsp; need &amp;gt;=60&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Hope this helps&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 16:14:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-eval-time-minutes/m-p/590254#M205497</guid>
      <dc:creator>venky1544</dc:creator>
      <dc:date>2022-03-22T16:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Make eval time minutes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-eval-time-minutes/m-p/590271#M205504</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/223531"&gt;@troy44112&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you asked the condition for 60 minutes: 3600 are the seconds in 60 minutes.&lt;/P&gt;&lt;P&gt;time differences are expressed in seconds, so you can find the number to use in the check.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 16:47:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-eval-time-minutes/m-p/590271#M205504</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-03-22T16:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: Make eval time minutes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-eval-time-minutes/m-p/590365#M205546</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.splunk.com/t5/user/viewprofilepage/user-id/223531" target="_blank"&gt;@troy44112&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if you think the solution can you please accept the solution whichever was relevant for your use case&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;karma points are appreciated&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 09:03:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-eval-time-minutes/m-p/590365#M205546</guid>
      <dc:creator>venky1544</dc:creator>
      <dc:date>2022-03-23T09:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: Make eval time minutes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-eval-time-minutes/m-p/590488#M205585</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/137142"&gt;@venky1544&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;When I set the alert it runs off of "current time" search, so results are returned even though there isn't a delay. Would you happen to know how to change this search to if there is a delay of &amp;gt;60min. Rather than subtracting the current time from the last ingestion time?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 16:26:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-eval-time-minutes/m-p/590488#M205585</guid>
      <dc:creator>troy44112</dc:creator>
      <dc:date>2022-03-23T16:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Make eval time minutes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-eval-time-minutes/m-p/590492#M205586</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/223531"&gt;@troy44112&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Hi did you tried to use a different earliest and latest?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats max(_indextime) AS Late where earliest=-25h@h latest=-h@h (index=bluff) by sourcetype
| eval CurrentTime=now()
| eval Need = CurrentTime - Late, LastIngestionTime=strftime(Late,"%Y/%m/%d %H:%M:%S %Z"), CurrentTime =strftime(CurrentTime,"%Y/%m/%d %H:%M:%S %Z")
| where Need&amp;gt;=3600
| table sourcetype, LastIngestionTime, CurrentTime, Need
| rename LastIngestionTime as "Last", CurrentTime AS "Search time", Need AS "Latency in Minutes"&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 16:37:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-eval-time-minutes/m-p/590492#M205586</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-03-23T16:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: Make eval time minutes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-eval-time-minutes/m-p/590856#M205696</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;It still isn't working. The alert subtracts from whenever the search is ran &amp;amp; the "late" variable, then outputs it as latency. Rather than alerting if there is a delay &amp;gt;60min.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2022 12:47:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-eval-time-minutes/m-p/590856#M205696</guid>
      <dc:creator>troy44112</dc:creator>
      <dc:date>2022-03-25T12:47:12Z</dc:date>
    </item>
  </channel>
</rss>

