<?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: Correct Timestamp in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Correct-Timestamp/m-p/69470#M14090</link>
    <description>&lt;P&gt;Unfortunately there is no 'correct' way to format dates, and there are several popular variants, such as YYYY-mm-dd HH:MM:SS or mm/dd/YY. However, Splunk recognizes most of them quite well, but naturally there are situations where a date can be ambiguous e.g. 05/03/11.&lt;/P&gt;

&lt;P&gt;In those cases, it might be neccessary to instruct Splunk how to parse these correctly. This is done in  &lt;CODE&gt;props.conf&lt;/CODE&gt; on the server where the parsing phase takes place. Normally this is on the indexer, but if your files are coming through a full/heavy forwarder you'd do the configuration there instead.&lt;/P&gt;

&lt;P&gt;in props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[your_sourcetype]
TIME_FORMAT = %m/%d/%Y    
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or whatever your actual time format is.&lt;/P&gt;

&lt;P&gt;Unfortunately you cannot change what has already been indexed...&lt;/P&gt;

&lt;P&gt;Check out the docs for props.conf; &lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/Propsconf" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Admin/Propsconf&lt;/A&gt; and for information on which config goes where in general;&lt;BR /&gt;
&lt;A href="http://wiki.splunk.com/Where_do_I_configure_my_Splunk_settings%3F" target="_blank"&gt;http://wiki.splunk.com/Where_do_I_configure_my_Splunk_settings%3F&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Hope this helps,&lt;/P&gt;

&lt;P&gt;Kristian&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 11:54:52 GMT</pubDate>
    <dc:creator>kristian_kolb</dc:creator>
    <dc:date>2020-09-28T11:54:52Z</dc:date>
    <item>
      <title>Correct Timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Correct-Timestamp/m-p/69469#M14089</link>
      <description>&lt;P&gt;Problem. Just got back into office and found that logs for the 1st - 6th June, went to 6th Jan, 6th Feb, 6th Mar and so on. Meaning my datetime - dd-MM-yy hh:mm:ss,ffff - is being misrepresented by the american datetime format - swapping day for month.&lt;/P&gt;

&lt;P&gt;What is the correct way to format the date? And is there a way to fix where the raw data is being processed not as I intended.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2012 09:07:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Correct-Timestamp/m-p/69469#M14089</guid>
      <dc:creator>matthewcanty</dc:creator>
      <dc:date>2012-06-07T09:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: Correct Timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Correct-Timestamp/m-p/69470#M14090</link>
      <description>&lt;P&gt;Unfortunately there is no 'correct' way to format dates, and there are several popular variants, such as YYYY-mm-dd HH:MM:SS or mm/dd/YY. However, Splunk recognizes most of them quite well, but naturally there are situations where a date can be ambiguous e.g. 05/03/11.&lt;/P&gt;

&lt;P&gt;In those cases, it might be neccessary to instruct Splunk how to parse these correctly. This is done in  &lt;CODE&gt;props.conf&lt;/CODE&gt; on the server where the parsing phase takes place. Normally this is on the indexer, but if your files are coming through a full/heavy forwarder you'd do the configuration there instead.&lt;/P&gt;

&lt;P&gt;in props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[your_sourcetype]
TIME_FORMAT = %m/%d/%Y    
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or whatever your actual time format is.&lt;/P&gt;

&lt;P&gt;Unfortunately you cannot change what has already been indexed...&lt;/P&gt;

&lt;P&gt;Check out the docs for props.conf; &lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/Propsconf" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Admin/Propsconf&lt;/A&gt; and for information on which config goes where in general;&lt;BR /&gt;
&lt;A href="http://wiki.splunk.com/Where_do_I_configure_my_Splunk_settings%3F" target="_blank"&gt;http://wiki.splunk.com/Where_do_I_configure_my_Splunk_settings%3F&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Hope this helps,&lt;/P&gt;

&lt;P&gt;Kristian&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:54:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Correct-Timestamp/m-p/69470#M14090</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2020-09-28T11:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Correct Timestamp</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Correct-Timestamp/m-p/69471#M14091</link>
      <description>&lt;P&gt;Thanks for the info. I have changed the props.conf according to &lt;A href="http://splunk-base.splunk.com/answers/45237/choosing-the-correct-timestamp"&gt;http://splunk-base.splunk.com/answers/45237/choosing-the-correct-timestamp&lt;/A&gt; also I have modified the date-time format to yyyy/MM/dd etc.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2012 12:45:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Correct-Timestamp/m-p/69471#M14091</guid>
      <dc:creator>matthewcanty</dc:creator>
      <dc:date>2012-06-07T12:45:16Z</dc:date>
    </item>
  </channel>
</rss>

