<?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: Howto use _time to compare with field with time in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Howto-use-time-to-compare-with-field-with-time/m-p/433115#M171648</link>
    <description>&lt;P&gt;Wow thanks, it works!&lt;/P&gt;</description>
    <pubDate>Sun, 28 Apr 2019 11:34:15 GMT</pubDate>
    <dc:creator>krusovice</dc:creator>
    <dc:date>2019-04-28T11:34:15Z</dc:date>
    <item>
      <title>Howto use _time to compare with field with time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Howto-use-time-to-compare-with-field-with-time/m-p/433113#M171646</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I've a field with date/time in it. The field name is system_created_on=2019-04-26 09:38:24.&lt;/P&gt;

&lt;P&gt;I have a time picker and I would like to use the date selected to compare with a field with date/time. For example, when user select 4/26/2019, I need to have the query to match with"2019-04-26" from system_created_on field. How can I achieve this?&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:17:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Howto-use-time-to-compare-with-field-with-time/m-p/433113#M171646</guid>
      <dc:creator>krusovice</dc:creator>
      <dc:date>2020-09-30T00:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: Howto use _time to compare with field with time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Howto-use-time-to-compare-with-field-with-time/m-p/433114#M171647</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=YouShouldAlwaysSpecifyAnIndex AND sourcetype=AndSourcetypeToo eatliest=0 latest=now
| eval system_created_on=strptime(system_created_on, "%Y-%m-%d %H:%M:%S")
| addinfo
| where (system_created_on &amp;gt;= info_min_time AND system_created_on &amp;lt;= info_max_time)
| fieldformat system_created_on=strftime(system_created_on, "%Y-%m-%d %H:%M:%S")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 28 Apr 2019 02:45:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Howto-use-time-to-compare-with-field-with-time/m-p/433114#M171647</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-04-28T02:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: Howto use _time to compare with field with time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Howto-use-time-to-compare-with-field-with-time/m-p/433115#M171648</link>
      <description>&lt;P&gt;Wow thanks, it works!&lt;/P&gt;</description>
      <pubDate>Sun, 28 Apr 2019 11:34:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Howto-use-time-to-compare-with-field-with-time/m-p/433115#M171648</guid>
      <dc:creator>krusovice</dc:creator>
      <dc:date>2019-04-28T11:34:15Z</dc:date>
    </item>
  </channel>
</rss>

