<?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: Comparisons in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-for-date-compare-to-get-the-exact-output/m-p/512314#M143689</link>
    <description>&lt;P&gt;For date comparison, you should first convert any date format to epoch. Then you can compare.&lt;/P&gt;&lt;P&gt;share complete raw event with field names.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Aug 2020 09:24:25 GMT</pubDate>
    <dc:creator>thambisetty</dc:creator>
    <dc:date>2020-08-04T09:24:25Z</dc:date>
    <item>
      <title>How to create a search for date compare to get the exact output?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-for-date-compare-to-get-the-exact-output/m-p/512312#M143688</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="renuka_0-1596532169866.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10023i9AFDD7918EB69DD3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="renuka_0-1596532169866.png" alt="renuka_0-1596532169866.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I am trying on date compare but i am unable to get the exact output&lt;/P&gt;
&lt;P&gt;The condition for Date Compare:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;if(First_Date.before(Verifed_Date ) consider the value as 1,
else if(First_Date.equals(Verifed_Date ) consider the values as 0,
else consider the r value as 2;
if D2_ExecutionDate is null or empty mean verified should be null
Verified Condition is:

(Date Compare(Verifed_Date ,First_Date == 0 || Verifed_Date ,First_Date == 1)
&amp;amp;&amp;amp; (Verifed_Date ,Second_Date == 2 || Verifed_Date, Second_Date == 0))
get the verified values from PhaseMapping verified = R06.1&lt;/LI-CODE&gt;
&lt;P&gt;For reference i attached a screenshot..please help me with this&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;
&lt;P&gt;Renuka&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 05:41:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-for-date-compare-to-get-the-exact-output/m-p/512312#M143688</guid>
      <dc:creator>renuka</dc:creator>
      <dc:date>2020-08-05T05:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: Comparisons</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-for-date-compare-to-get-the-exact-output/m-p/512314#M143689</link>
      <description>&lt;P&gt;For date comparison, you should first convert any date format to epoch. Then you can compare.&lt;/P&gt;&lt;P&gt;share complete raw event with field names.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 09:24:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-for-date-compare-to-get-the-exact-output/m-p/512314#M143689</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2020-08-04T09:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: Comparisons</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-for-date-compare-to-get-the-exact-output/m-p/512476#M143737</link>
      <description>&lt;P&gt;You are comparing strings by quoting the field names in the case statement. Remove the quotes then you will compare fields, not the string values, i.e.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval DateCompare=case(First_Date&amp;lt;verified_Date,1,...)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Also make sure the OR and AND boolean operators are in CAPS, not lower case as in your screenshot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 01:29:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-search-for-date-compare-to-get-the-exact-output/m-p/512476#M143737</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2020-08-05T01:29:54Z</dc:date>
    </item>
  </channel>
</rss>

