<?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 Include or clean incorrect timestamps in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Include-or-clean-incorrect-timestamps/m-p/109386#M23015</link>
    <description>&lt;P&gt;I have an application log that primarily has timestamps like the following:-&lt;/P&gt;

&lt;P&gt;(14.2) 05-12-15 14:28:&lt;STRONG&gt;14&lt;/STRONG&gt; (.....&lt;/P&gt;

&lt;P&gt;However sometimes, for certain events, the application misses off the last digit and we get this:-&lt;/P&gt;

&lt;P&gt;(14.2) 05-12-15 14:28:&lt;STRONG&gt;1&lt;/STRONG&gt; (....&lt;/P&gt;

&lt;P&gt;Obviously, Splunk splits up my events correctly when the timestamp is correct but merges events when the timestamp is wrong. &lt;/P&gt;

&lt;P&gt;Is there any way to either;&lt;BR /&gt;
a) exclude the text lines from the logs where the timestamp is wrong (we can probably live with this) before indexing, or&lt;BR /&gt;
b) make Splunk use the incorrect timestamps as well, maybe appending a zero (0) onto them &lt;/P&gt;

&lt;P&gt;Thanks for any assistance.&lt;BR /&gt;
b/&lt;/P&gt;</description>
    <pubDate>Wed, 13 May 2015 15:08:29 GMT</pubDate>
    <dc:creator>atown100</dc:creator>
    <dc:date>2015-05-13T15:08:29Z</dc:date>
    <item>
      <title>Include or clean incorrect timestamps</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Include-or-clean-incorrect-timestamps/m-p/109386#M23015</link>
      <description>&lt;P&gt;I have an application log that primarily has timestamps like the following:-&lt;/P&gt;

&lt;P&gt;(14.2) 05-12-15 14:28:&lt;STRONG&gt;14&lt;/STRONG&gt; (.....&lt;/P&gt;

&lt;P&gt;However sometimes, for certain events, the application misses off the last digit and we get this:-&lt;/P&gt;

&lt;P&gt;(14.2) 05-12-15 14:28:&lt;STRONG&gt;1&lt;/STRONG&gt; (....&lt;/P&gt;

&lt;P&gt;Obviously, Splunk splits up my events correctly when the timestamp is correct but merges events when the timestamp is wrong. &lt;/P&gt;

&lt;P&gt;Is there any way to either;&lt;BR /&gt;
a) exclude the text lines from the logs where the timestamp is wrong (we can probably live with this) before indexing, or&lt;BR /&gt;
b) make Splunk use the incorrect timestamps as well, maybe appending a zero (0) onto them &lt;/P&gt;

&lt;P&gt;Thanks for any assistance.&lt;BR /&gt;
b/&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2015 15:08:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Include-or-clean-incorrect-timestamps/m-p/109386#M23015</guid>
      <dc:creator>atown100</dc:creator>
      <dc:date>2015-05-13T15:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Include or clean incorrect timestamps</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Include-or-clean-incorrect-timestamps/m-p/109387#M23016</link>
      <description>&lt;P&gt;Make this a Heavy Forwarder and repair the events before they are indexed:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.4/Data/Anonymizedatausingconfigurationfiles#Through_a_sed_script"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.4/Data/Anonymizedatausingconfigurationfiles#Through_a_sed_script&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Your entry should look like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[&amp;amp;lt;spec&amp;amp;gt;]
SEDCMD-FixTimestmapBeforeIndexing = s/\(:[0-9]\) /\10 /
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 May 2015 18:23:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Include-or-clean-incorrect-timestamps/m-p/109387#M23016</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-05-14T18:23:09Z</dc:date>
    </item>
  </channel>
</rss>

