<?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 do I extract the event time? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-the-event-time/m-p/311586#M93369</link>
    <description>&lt;P&gt;what are you trying to do? _time is already available. you can just append | table _time  to your search&lt;/P&gt;</description>
    <pubDate>Thu, 06 Apr 2017 01:34:13 GMT</pubDate>
    <dc:creator>pradeepkumarg</dc:creator>
    <dc:date>2017-04-06T01:34:13Z</dc:date>
    <item>
      <title>How do I extract the event time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-the-event-time/m-p/311585#M93368</link>
      <description>&lt;P&gt;I tried this but didn't work.  | return _time=strftime(_time,"%Y-%m-%d %H:%M:%S") &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:33:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-the-event-time/m-p/311585#M93368</guid>
      <dc:creator>amccallon</dc:creator>
      <dc:date>2020-09-29T13:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: How do I extract the event time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-the-event-time/m-p/311586#M93369</link>
      <description>&lt;P&gt;what are you trying to do? _time is already available. you can just append | table _time  to your search&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 01:34:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-the-event-time/m-p/311586#M93369</guid>
      <dc:creator>pradeepkumarg</dc:creator>
      <dc:date>2017-04-06T01:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: How do I extract the event time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-the-event-time/m-p/311587#M93370</link>
      <description>&lt;P&gt;Are you trying to reformat the time at search time? If so then you will need to re-index your data with the correct &lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt; attribute in &lt;CODE&gt;props.conf&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 01:47:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-the-event-time/m-p/311587#M93370</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2017-04-06T01:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do I extract the event time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-the-event-time/m-p/311588#M93371</link>
      <description>&lt;P&gt;Thanks Splunkers! I am trying to return a date to display. I get the epoch time when i use the return _time like above but it doesn't get reformatted to a readable date and time?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 14:19:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-the-event-time/m-p/311588#M93371</guid>
      <dc:creator>amccallon</dc:creator>
      <dc:date>2017-04-06T14:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do I extract the event time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-the-event-time/m-p/311589#M93372</link>
      <description>&lt;P&gt;@amccallon... fieldformat will adjust the field value for display while retaining the time as epoch. Are you trying to do something like this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | fieldformat _time=strftime(_time,"%Y-%m-%d %H:%M:%S")
 | table _time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 06 Apr 2017 14:28:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-the-event-time/m-p/311589#M93372</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-04-06T14:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do I extract the event time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-the-event-time/m-p/311590#M93373</link>
      <description>&lt;P&gt;Thank you that worked!&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 15:13:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-the-event-time/m-p/311590#M93373</guid>
      <dc:creator>amccallon</dc:creator>
      <dc:date>2017-04-06T15:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: How do I extract the event time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-the-event-time/m-p/311591#M93374</link>
      <description>&lt;P&gt;@amccallon please accept the answer, if it solved the issue for you.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 15:50:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-extract-the-event-time/m-p/311591#M93374</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-04-06T15:50:00Z</dc:date>
    </item>
  </channel>
</rss>

