<?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 timestamp conversion in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/timestamp-conversion/m-p/119312#M24776</link>
    <description>&lt;P&gt;Hi ,&lt;BR /&gt;
I want to convert the &lt;BR /&gt;
Input :2013-12-09 18:11:34&lt;BR /&gt;
Input :13-12-09 18:11:34&lt;BR /&gt;
I want a common regex to convert the above format to the below format&lt;BR /&gt;
Output:Thu December 2013 12 18:11:34.&lt;BR /&gt;
I tried with the regex  | eval m=strptime(timestamp,"%Y-%m-%d")|eval timestamp=strftime(m,"%B %Y")|table timestamp&lt;BR /&gt;
But it is converting only the timestamp with the format 2013-12-09 18:11:34 and not 13-12-09 18:11:34.&lt;/P&gt;</description>
    <pubDate>Mon, 20 Jan 2014 09:01:25 GMT</pubDate>
    <dc:creator>Jananee_iNautix</dc:creator>
    <dc:date>2014-01-20T09:01:25Z</dc:date>
    <item>
      <title>timestamp conversion</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/timestamp-conversion/m-p/119312#M24776</link>
      <description>&lt;P&gt;Hi ,&lt;BR /&gt;
I want to convert the &lt;BR /&gt;
Input :2013-12-09 18:11:34&lt;BR /&gt;
Input :13-12-09 18:11:34&lt;BR /&gt;
I want a common regex to convert the above format to the below format&lt;BR /&gt;
Output:Thu December 2013 12 18:11:34.&lt;BR /&gt;
I tried with the regex  | eval m=strptime(timestamp,"%Y-%m-%d")|eval timestamp=strftime(m,"%B %Y")|table timestamp&lt;BR /&gt;
But it is converting only the timestamp with the format 2013-12-09 18:11:34 and not 13-12-09 18:11:34.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2014 09:01:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/timestamp-conversion/m-p/119312#M24776</guid>
      <dc:creator>Jananee_iNautix</dc:creator>
      <dc:date>2014-01-20T09:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: timestamp conversion</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/timestamp-conversion/m-p/119313#M24777</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;yoursearchhere
| eval outputTimestamp = if (match(timestamp,"\d{2}-\d{2}-\d{2} \d{2}\:\d{2}\:\d{2}"),
            strptime(timestamp,"%y-%m-%d %H:%M:%S"),strptime(timestamp,"%Y-%m-%d %H:%M:%S"))
| eval outputTimestamp = strftime(outputTimestamp,"%a %b %Y %d %H:%M:%S")
| table timestamp outputTimestamp
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 20 Jan 2014 09:18:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/timestamp-conversion/m-p/119313#M24777</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2014-01-20T09:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: timestamp conversion</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/timestamp-conversion/m-p/119314#M24778</link>
      <description>&lt;P&gt;If these are timestamps in your input, aren't they the timestamp that Splunk uses in its own timestamp recognition? I think you might be making this more complicated than it needs to be.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2014 10:00:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/timestamp-conversion/m-p/119314#M24778</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2014-01-20T10:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: timestamp conversion</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/timestamp-conversion/m-p/119315#M24779</link>
      <description>&lt;P&gt;Thanks a lot...it is working&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2014 12:55:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/timestamp-conversion/m-p/119315#M24779</guid>
      <dc:creator>Jananee_iNautix</dc:creator>
      <dc:date>2014-01-21T12:55:03Z</dc:date>
    </item>
  </channel>
</rss>

