<?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: Why is Splunk indexing data for 12 hours instead of 24 hours? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-indexing-data-for-12-hours-instead-of-24-hours/m-p/294402#M55930</link>
    <description>&lt;P&gt;So your events look like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;12:01     &amp;lt;-- 12:01 AM
01:01     &amp;lt;-- 1:01 AM
...
12:01    &amp;lt;-- 12:01 PM
01:01    &amp;lt;-- 1:01 PM
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;?&lt;/P&gt;

&lt;P&gt;Which would mean you don't have AM/PM or 24-hour format.  That sounds less than ideal to say the least.&lt;/P&gt;</description>
    <pubDate>Wed, 14 Feb 2018 22:01:43 GMT</pubDate>
    <dc:creator>micahkemp</dc:creator>
    <dc:date>2018-02-14T22:01:43Z</dc:date>
    <item>
      <title>Why is Splunk indexing data for 12 hours instead of 24 hours?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-indexing-data-for-12-hours-instead-of-24-hours/m-p/294399#M55927</link>
      <description>&lt;P&gt;After 12:59 PM slpunk is indexing data to 1:AM. It should index data for 24 hours but it is indexing for 12 hours only however 1:PM data are getting indexed in 1Am so I have two events in 1 am time stamp Below is my &lt;CODE&gt;props.conf&lt;/CODE&gt; file.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;DATETIME_CONFIG=CURRENT
NO_BINARY_CHECK = 1
pulldown_type = 1
TIME_FORMAT = %H:%M
TZ = US/Eastern
SHOULD_LINEMERGE = false
BREAK_ONLY_BEFORE = \d\d:\d\d+\s*$
MAX_TIMESTAMP_LOOKAHEAD = 50
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Feb 2018 18:49:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-indexing-data-for-12-hours-instead-of-24-hours/m-p/294399#M55927</guid>
      <dc:creator>gautamr103</dc:creator>
      <dc:date>2018-02-14T18:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk indexing data for 12 hours instead of 24 hours?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-indexing-data-for-12-hours-instead-of-24-hours/m-p/294400#M55928</link>
      <description>&lt;P&gt;What does your event text look like?  If it includes AM/PM your TIME_FORMAT won't handle that.&lt;/P&gt;

&lt;P&gt;If your event looks like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;03:45 PM
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Your TIME_FORMAT would need to be:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_FORMAT = %H:%M %p
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Feb 2018 20:21:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-indexing-data-for-12-hours-instead-of-24-hours/m-p/294400#M55928</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2018-02-14T20:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk indexing data for 12 hours instead of 24 hours?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-indexing-data-for-12-hours-instead-of-24-hours/m-p/294401#M55929</link>
      <description>&lt;P&gt;Hi Micahkemp thank you for your reply&lt;/P&gt;

&lt;P&gt;I dont have am pm on my event logs&lt;/P&gt;

&lt;P&gt;this is my logs generated at 12:01 AM---&amp;gt; 12:01 Info [tasks_advancemedia_aspx]&lt;BR /&gt;
and this was generated at 12:01 PM --&amp;gt; 12:01 Info [WorkerService] RTAEncode acm status &lt;/P&gt;

&lt;P&gt;Also I wanted to break event according to time I have another log at same time ---&amp;gt; 12:01 Error [lambda_method] Unable how would I break event with same time but different logs, I tried  BREAK_ONLY_BEFORE = ^\d\d:\d\d+\s but it did not work.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:07:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-indexing-data-for-12-hours-instead-of-24-hours/m-p/294401#M55929</guid>
      <dc:creator>gautamr103</dc:creator>
      <dc:date>2020-09-29T18:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk indexing data for 12 hours instead of 24 hours?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-indexing-data-for-12-hours-instead-of-24-hours/m-p/294402#M55930</link>
      <description>&lt;P&gt;So your events look like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;12:01     &amp;lt;-- 12:01 AM
01:01     &amp;lt;-- 1:01 AM
...
12:01    &amp;lt;-- 12:01 PM
01:01    &amp;lt;-- 1:01 PM
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;?&lt;/P&gt;

&lt;P&gt;Which would mean you don't have AM/PM or 24-hour format.  That sounds less than ideal to say the least.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 22:01:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-indexing-data-for-12-hours-instead-of-24-hours/m-p/294402#M55930</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2018-02-14T22:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk indexing data for 12 hours instead of 24 hours?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-indexing-data-for-12-hours-instead-of-24-hours/m-p/294403#M55931</link>
      <description>&lt;P&gt;right without AM and PM&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 22:10:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-indexing-data-for-12-hours-instead-of-24-hours/m-p/294403#M55931</guid>
      <dc:creator>gautamr103</dc:creator>
      <dc:date>2018-02-14T22:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk indexing data for 12 hours instead of 24 hours?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-indexing-data-for-12-hours-instead-of-24-hours/m-p/294404#M55932</link>
      <description>&lt;P&gt;May want to just use index time if in the same timezone - or keep that in mind for this particular sourcetype&lt;/P&gt;

&lt;P&gt;Props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sourcetypeName]
DATETIME_CONFIG = CURRENT
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Admin/Propsconf?utm_source=answers&amp;amp;utm_medium=in-comment&amp;amp;utm_term=props.conf&amp;amp;utm_campaign=refdoc#Timestamp_extraction_configuration"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Admin/Propsconf?utm_source=answers&amp;amp;utm_medium=in-comment&amp;amp;utm_term=props.conf&amp;amp;utm_campaign=refdoc#Timestamp_extraction_configuration&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 22:46:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-indexing-data-for-12-hours-instead-of-24-hours/m-p/294404#M55932</guid>
      <dc:creator>thomast_splunk</dc:creator>
      <dc:date>2019-01-16T22:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk indexing data for 12 hours instead of 24 hours?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-indexing-data-for-12-hours-instead-of-24-hours/m-p/294405#M55933</link>
      <description>&lt;P&gt;Just to expand on previous comments - it is indexing for 24 hours, but the lack of AM/PM data is resulting in everything being in AM.&lt;/P&gt;

&lt;P&gt;If you source data cannot be adjusted to include more time information, then as @thomast_splunk suggests one option would be to just use the whatever the current time and date is when splunk receives the event for processing.&lt;/P&gt;

&lt;P&gt;DATETIME_CONFIG = NONE is another option:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  * "NONE" will leave the event time set to whatever time was selected by
    the input layer
    * For data sent by splunk forwarders over the splunk protocol, the input
      layer will be the time that was selected on the forwarder by its input
      behavior (as below).
    * For file-based inputs (monitor, batch) the time chosen will be the
      modification timestamp on the file being read.
    * For other inputs, the time chosen will be the current system time when
      the event is read from the pipe/socket/etc.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This page is a good primer on how Splunk assigns timestamps if you want more details:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.3/Data/HowSplunkextractstimestamps#How_Splunk_software_assigns_timestamps"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.3/Data/HowSplunkextractstimestamps#How_Splunk_software_assigns_timestamps&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jan 2019 05:30:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-indexing-data-for-12-hours-instead-of-24-hours/m-p/294405#M55933</guid>
      <dc:creator>eavent_splunk</dc:creator>
      <dc:date>2019-01-17T05:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Splunk indexing data for 12 hours instead of 24 hours?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-indexing-data-for-12-hours-instead-of-24-hours/m-p/294406#M55934</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
Can you give some sample of your time format. So if you also have seconds and milliseconds in your events, then you will have to change your TIME_FORMAT in props.conf as below:&lt;BR /&gt;
TIME_FORMAT=%H:%M:%S.%N    &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:47:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-Splunk-indexing-data-for-12-hours-instead-of-24-hours/m-p/294406#M55934</guid>
      <dc:creator>nikita_p</dc:creator>
      <dc:date>2020-09-29T22:47:24Z</dc:date>
    </item>
  </channel>
</rss>

