<?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: Can anyone please explain what this eval function is? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Can-anyone-please-explain-what-this-eval-function-is/m-p/228941#M67754</link>
    <description>&lt;P&gt;If the event time (_time) is greater than the current time (now) rounded to the nearest day (relative_time(now, "-0d@d")) then do something.&lt;/P&gt;

&lt;P&gt;See relative_time and now() &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.0/SearchReference/CommonEvalFunctions#Date_and_Time_functions" target="_blank"&gt;documentation&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;If helps, "-0d@d" and "@d" are equivalent. See the time modifiers &lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.0/SearchReference/SearchTimeModifiers#How_to_specify_relative_time_modifiers" target="_blank"&gt;page&lt;/A&gt; for more information.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
J&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 11:16:43 GMT</pubDate>
    <dc:creator>javiergn</dc:creator>
    <dc:date>2020-09-29T11:16:43Z</dc:date>
    <item>
      <title>Can anyone please explain what this eval function is?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-anyone-please-explain-what-this-eval-function-is/m-p/228940#M67753</link>
      <description>&lt;P&gt;if(_time&amp;gt;relative_time((now),"-0d@d")&lt;BR /&gt;
 AND _time                                &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:16:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-anyone-please-explain-what-this-eval-function-is/m-p/228940#M67753</guid>
      <dc:creator>Deepali529</dc:creator>
      <dc:date>2020-09-29T11:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone please explain what this eval function is?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-anyone-please-explain-what-this-eval-function-is/m-p/228941#M67754</link>
      <description>&lt;P&gt;If the event time (_time) is greater than the current time (now) rounded to the nearest day (relative_time(now, "-0d@d")) then do something.&lt;/P&gt;

&lt;P&gt;See relative_time and now() &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.0/SearchReference/CommonEvalFunctions#Date_and_Time_functions" target="_blank"&gt;documentation&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;If helps, "-0d@d" and "@d" are equivalent. See the time modifiers &lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.0/SearchReference/SearchTimeModifiers#How_to_specify_relative_time_modifiers" target="_blank"&gt;page&lt;/A&gt; for more information.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
J&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:16:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-anyone-please-explain-what-this-eval-function-is/m-p/228941#M67754</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2020-09-29T11:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone please explain what this eval function is?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-anyone-please-explain-what-this-eval-function-is/m-p/228942#M67755</link>
      <description>&lt;P&gt;&lt;CODE&gt;_time&lt;/CODE&gt; represents the time the event occurred. &lt;BR /&gt;
&lt;CODE&gt;relative_time()&lt;/CODE&gt; :  takes an time (epoch), as the first argument and a relative time difference, as the second argument and returns the epochtime value of difference from time. In you example, it will return "-0d@d" which is same as start of day = TODAY() at 12:00:00.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.0/SearchReference/CommonEvalFunctions"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.0/SearchReference/CommonEvalFunctions&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2016 15:46:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-anyone-please-explain-what-this-eval-function-is/m-p/228942#M67755</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-10-04T15:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone please explain what this eval function is?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-anyone-please-explain-what-this-eval-function-is/m-p/228943#M67756</link>
      <description>&lt;P&gt;Hi @Deepali529 - Did one of the answers below help solve your question? If yes, please click on "Accept" below the best answer to resolve this post. If not, please comment with feedback. Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2016 23:53:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-anyone-please-explain-what-this-eval-function-is/m-p/228943#M67756</guid>
      <dc:creator>aaraneta_splunk</dc:creator>
      <dc:date>2016-10-06T23:53:18Z</dc:date>
    </item>
  </channel>
</rss>

