<?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: How to extract date YYYYMMDD from _time? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-date-YYYYMMDD-from-time/m-p/90668#M23289</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;... | eval mytime=strftime(_time, "%Y%m%d") | table mytime
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 10 Jul 2013 09:14:01 GMT</pubDate>
    <dc:creator>Damien_Dallimor</dc:creator>
    <dc:date>2013-07-10T09:14:01Z</dc:date>
    <item>
      <title>How to extract date YYYYMMDD from _time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-date-YYYYMMDD-from-time/m-p/90667#M23288</link>
      <description>&lt;P&gt;How to extract date YYYYMMDD from _time?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2013 09:06:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-date-YYYYMMDD-from-time/m-p/90667#M23288</guid>
      <dc:creator>royimad</dc:creator>
      <dc:date>2013-07-10T09:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract date YYYYMMDD from _time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-date-YYYYMMDD-from-time/m-p/90668#M23289</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;... | eval mytime=strftime(_time, "%Y%m%d") | table mytime
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 10 Jul 2013 09:14:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-date-YYYYMMDD-from-time/m-p/90668#M23289</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2013-07-10T09:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract date YYYYMMDD from _time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-date-YYYYMMDD-from-time/m-p/90669#M23290</link>
      <description>&lt;P&gt;How do i get this treated as date again?&lt;BR /&gt;
I was using the above eval to get just the date out (ignoring the time) ... but i see that the string extracted is treated as a number when i graph it.&lt;/P&gt;

&lt;P&gt;How do i get it converted back to date?&lt;/P&gt;

&lt;P&gt;eg:  i have events with different timestamp and the same date.  I want to group them based on the date by ignoring the timestamp on it.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2013 14:48:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-date-YYYYMMDD-from-time/m-p/90669#M23290</guid>
      <dc:creator>nandipatisunil</dc:creator>
      <dc:date>2013-11-01T14:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract date YYYYMMDD from _time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-date-YYYYMMDD-from-time/m-p/90670#M23291</link>
      <description>&lt;P&gt;with &lt;CODE&gt;strptime&lt;/CODE&gt;;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...| eval my_new_time = strptime(mytime, "%Y%m%d")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;/k&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2013 15:15:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-date-YYYYMMDD-from-time/m-p/90670#M23291</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-11-01T15:15:40Z</dc:date>
    </item>
  </channel>
</rss>

