<?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 format date without year in the time stamp in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/how-to-format-date-without-year-in-the-time-stamp/m-p/144956#M29580</link>
    <description>&lt;P&gt;You could try using the convert command.&lt;/P&gt;

&lt;HR /&gt;

&lt;PRE&gt;&lt;CODE&gt;convert timeformat=%d/%m ctime(Time)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;HR /&gt;

&lt;P&gt;This should work I think, I've used it in a graph to change the time stamp, but not the date, I think it should still apply.&lt;/P&gt;</description>
    <pubDate>Tue, 30 Sep 2014 10:06:32 GMT</pubDate>
    <dc:creator>markthompson</dc:creator>
    <dc:date>2014-09-30T10:06:32Z</dc:date>
    <item>
      <title>how to format date without year in the time stamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-format-date-without-year-in-the-time-stamp/m-p/144952#M29576</link>
      <description>&lt;P&gt;I have a file that I'm trying to get the date right on - but am not having much success, and haven't been able to find a solution as yet.&lt;/P&gt;

&lt;P&gt;Time stamp format is as below:&lt;BR /&gt;
09/23 16:30:01.55 &lt;/P&gt;

&lt;P&gt;This is at the start of the event line with other information following.&lt;/P&gt;

&lt;P&gt;I have tried using:  TIME_FORMAT=%d/%m  %H:%M:%S.%2N&lt;/P&gt;

&lt;P&gt;however, this gives me: 9/20/01 6:24:41.550 AM&lt;/P&gt;

&lt;P&gt;2 things I would like to try and achieve are:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Getting the date format correct for the date that is being presented&lt;/LI&gt;
&lt;LI&gt;if possible, append the year to the event&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Tue, 30 Sep 2014 00:07:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-format-date-without-year-in-the-time-stamp/m-p/144952#M29576</guid>
      <dc:creator>Kozanic</dc:creator>
      <dc:date>2014-09-30T00:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: how to format date without year in the time stamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-format-date-without-year-in-the-time-stamp/m-p/144953#M29577</link>
      <description>&lt;P&gt;Minor edit:&lt;BR /&gt;
TIME_FORMAT=%m/%d %H:%M:%S.%3N&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2014 02:02:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-format-date-without-year-in-the-time-stamp/m-p/144953#M29577</guid>
      <dc:creator>Kozanic</dc:creator>
      <dc:date>2014-09-30T02:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to format date without year in the time stamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-format-date-without-year-in-the-time-stamp/m-p/144954#M29578</link>
      <description>&lt;P&gt;have you looked at this answer? &lt;A href="http://answers.splunk.com/answers/37896/date-without-year-wrong-index.html"&gt;http://answers.splunk.com/answers/37896/date-without-year-wrong-index.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2014 02:19:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-format-date-without-year-in-the-time-stamp/m-p/144954#M29578</guid>
      <dc:creator>sk314</dc:creator>
      <dc:date>2014-09-30T02:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to format date without year in the time stamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-format-date-without-year-in-the-time-stamp/m-p/144955#M29579</link>
      <description>&lt;P&gt;Thanks sk314, I hadn't, but I have tried and it doesn't seem to be working for me - not sure if I'm doing it wrong somehow.&lt;/P&gt;

&lt;P&gt;Will continue to play and see what I can work out.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2014 04:32:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-format-date-without-year-in-the-time-stamp/m-p/144955#M29579</guid>
      <dc:creator>Kozanic</dc:creator>
      <dc:date>2014-09-30T04:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to format date without year in the time stamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-format-date-without-year-in-the-time-stamp/m-p/144956#M29580</link>
      <description>&lt;P&gt;You could try using the convert command.&lt;/P&gt;

&lt;HR /&gt;

&lt;PRE&gt;&lt;CODE&gt;convert timeformat=%d/%m ctime(Time)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;HR /&gt;

&lt;P&gt;This should work I think, I've used it in a graph to change the time stamp, but not the date, I think it should still apply.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2014 10:06:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-format-date-without-year-in-the-time-stamp/m-p/144956#M29580</guid>
      <dc:creator>markthompson</dc:creator>
      <dc:date>2014-09-30T10:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to format date without year in the time stamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-format-date-without-year-in-the-time-stamp/m-p/144957#M29581</link>
      <description>&lt;P&gt;Thanks Mark,&lt;/P&gt;

&lt;P&gt;Am I able to use convert at index time?  &lt;/P&gt;

&lt;P&gt;I have tried your suggestion, but does seem to make any different to the Timestamp being generated.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2014 22:57:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-format-date-without-year-in-the-time-stamp/m-p/144957#M29581</guid>
      <dc:creator>Kozanic</dc:creator>
      <dc:date>2014-09-30T22:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to format date without year in the time stamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-format-date-without-year-in-the-time-stamp/m-p/144958#M29582</link>
      <description>&lt;P&gt;Hi Kozanic,&lt;BR /&gt;
Do you mean at the time that it indexes the file? If so, I don't think you can, but it can be used in search queries,&lt;BR /&gt;
Otherwise I think you could use this solution; &lt;A href="http://answers.splunk.com/answers/525/how-can-i-change-the-time-format-in-splunk-web.html"&gt;http://answers.splunk.com/answers/525/how-can-i-change-the-time-format-in-splunk-web.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Hope this helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2014 07:47:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-format-date-without-year-in-the-time-stamp/m-p/144958#M29582</guid>
      <dc:creator>markthompson</dc:creator>
      <dc:date>2014-10-01T07:47:13Z</dc:date>
    </item>
  </channel>
</rss>

