<?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 Please use Time Variables and derive strptime time variables for me. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Please-use-Time-Variables-and-derive-strptime-time-variables-for/m-p/485172#M135778</link>
    <description>&lt;P&gt;Some events have time as string as "Tue Jun 12 00:00:00 CDT 2018" and some have "Fri Nov 16 00:00:00 CST 2018" in ENDDATE field. Can data have different timezones in events? &lt;/P&gt;

&lt;P&gt;If yes I wrote strptime as eval "End Date"=strptime('ENDDATE',"%d %b %a %H:%M:%S %Z %Y"). It is not working. Please help.&lt;/P&gt;</description>
    <pubDate>Thu, 14 Nov 2019 15:07:02 GMT</pubDate>
    <dc:creator>rajagurup</dc:creator>
    <dc:date>2019-11-14T15:07:02Z</dc:date>
    <item>
      <title>Please use Time Variables and derive strptime time variables for me.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Please-use-Time-Variables-and-derive-strptime-time-variables-for/m-p/485172#M135778</link>
      <description>&lt;P&gt;Some events have time as string as "Tue Jun 12 00:00:00 CDT 2018" and some have "Fri Nov 16 00:00:00 CST 2018" in ENDDATE field. Can data have different timezones in events? &lt;/P&gt;

&lt;P&gt;If yes I wrote strptime as eval "End Date"=strptime('ENDDATE',"%d %b %a %H:%M:%S %Z %Y"). It is not working. Please help.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2019 15:07:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Please-use-Time-Variables-and-derive-strptime-time-variables-for/m-p/485172#M135778</guid>
      <dc:creator>rajagurup</dc:creator>
      <dc:date>2019-11-14T15:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Please use Time Variables and derive strptime time variables for me.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Please-use-Time-Variables-and-derive-strptime-time-variables-for/m-p/485173#M135779</link>
      <description>&lt;P&gt;Yes, different timezones are allowed.  CST and CDT are the same time zone, just adjusted for summer time (CST).&lt;/P&gt;

&lt;P&gt;Your time format string doesn't match your sample dates.  Try &lt;CODE&gt;%a %b %d %H:%M:%S %Z %Y&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2019 15:39:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Please-use-Time-Variables-and-derive-strptime-time-variables-for/m-p/485173#M135779</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-11-14T15:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: Please use Time Variables and derive strptime time variables for me.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Please-use-Time-Variables-and-derive-strptime-time-variables-for/m-p/485174#M135780</link>
      <description>&lt;P&gt;Based on your sample, this should work for you&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval "End Date" = strptime(ENDDATE, "%a %b %e %T %Z %Y")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Nov 2019 17:03:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Please-use-Time-Variables-and-derive-strptime-time-variables-for/m-p/485174#M135780</guid>
      <dc:creator>arjunpkishore5</dc:creator>
      <dc:date>2019-11-14T17:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: Please use Time Variables and derive strptime time variables for me.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Please-use-Time-Variables-and-derive-strptime-time-variables-for/m-p/485175#M135781</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval ENDDATE="Tue Jun 12 00:00:00 CDT 2018" 
| fields - _time 
| eval "EndDate"=strptime(ENDDATE,"%a %b %d %H:%M:%S %Z %Y")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Nov 2019 01:27:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Please-use-Time-Variables-and-derive-strptime-time-variables-for/m-p/485175#M135781</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-11-15T01:27:02Z</dc:date>
    </item>
  </channel>
</rss>

