<?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: Question about timestamp formatting in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Question-about-timestamp-formatting/m-p/164985#M33468</link>
    <description>&lt;P&gt;Glad to hear it.  Please accept the answer.&lt;/P&gt;</description>
    <pubDate>Tue, 25 Feb 2014 18:59:34 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2014-02-25T18:59:34Z</dc:date>
    <item>
      <title>Question about timestamp formatting</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Question-about-timestamp-formatting/m-p/164982#M33465</link>
      <description>&lt;P&gt;I have this is a search:&lt;BR /&gt;
...&lt;BR /&gt;
|eval phaseD_time=if(searchmatch("SERVICE_INSTANCE,MESSAGE_RECEIVED,SERVICE_REQUEST"), _time, null())&lt;BR /&gt;
..&lt;BR /&gt;
|table phaseD_time &lt;/P&gt;

&lt;P&gt;When I get this report, I am getting the TIME value like this:&lt;BR /&gt;
1393347208.426&lt;/P&gt;

&lt;P&gt;How would I get this in some sort of normal format like "mm-dd-YYYY HH:MM:sec"??&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:58:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Question-about-timestamp-formatting/m-p/164982#M33465</guid>
      <dc:creator>gartnerj</dc:creator>
      <dc:date>2020-09-28T15:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: Question about timestamp formatting</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Question-about-timestamp-formatting/m-p/164983#M33466</link>
      <description>&lt;P&gt;Try '&lt;CODE&gt;... | eval phaseD_timestr=strftime(phaseD_time,"%m-%d-%Y %H:%M:%S" | table phaseD_timestr&lt;/CODE&gt;'.  Note that if &lt;CODE&gt;phaseD_time&lt;/CODE&gt; is null then &lt;CODE&gt;phaseD_timestr&lt;/CODE&gt; will also be null.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2014 18:25:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Question-about-timestamp-formatting/m-p/164983#M33466</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2014-02-25T18:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: Question about timestamp formatting</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Question-about-timestamp-formatting/m-p/164984#M33467</link>
      <description>&lt;P&gt;Awesome -- thanks.&lt;BR /&gt;
I actually shortened it to:&lt;BR /&gt;
eval phaseB_time=strftime(if(searchmatch("LOAD_BALANCER,MESSAGE_RECEIVED,SERVICE_REQUEST"), _time, null()), "%m-%d-%Y %k:%M:%S.%N")&lt;/P&gt;

&lt;P&gt;and it does work.&lt;/P&gt;

&lt;P&gt;Thanks!!!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:58:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Question-about-timestamp-formatting/m-p/164984#M33467</guid>
      <dc:creator>gartnerj</dc:creator>
      <dc:date>2020-09-28T15:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: Question about timestamp formatting</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Question-about-timestamp-formatting/m-p/164985#M33468</link>
      <description>&lt;P&gt;Glad to hear it.  Please accept the answer.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2014 18:59:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Question-about-timestamp-formatting/m-p/164985#M33468</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2014-02-25T18:59:34Z</dc:date>
    </item>
  </channel>
</rss>

