<?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: Manually configure timestamp at index time from custom datetime.xml in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Manually-configure-timestamp-at-index-time-from-custom-datetime/m-p/152160#M30967</link>
    <description>&lt;P&gt;MMM, well it works for me...&lt;BR /&gt;
Bizza should be able to confirm&lt;BR /&gt;
Antonio&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2014 08:32:55 GMT</pubDate>
    <dc:creator>abonuccelli_spl</dc:creator>
    <dc:date>2014-06-04T08:32:55Z</dc:date>
    <item>
      <title>Manually configure timestamp at index time from custom datetime.xml</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Manually-configure-timestamp-at-index-time-from-custom-datetime/m-p/152153#M30960</link>
      <description>&lt;P&gt;I tried to configure a custom datetime.xml (for my first time) as follow:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;datetime&amp;gt;

&amp;lt;define name="csdate" extract="year, month, day, hour, minute"&amp;gt;
        &amp;lt;text&amp;gt;&amp;lt;![CDATA[[\s\S]{40}(\d{4})(\d{2})(\d{2})[\s\S]{206}(\d{2})(\d{2})]]&amp;gt;&amp;lt;/text&amp;gt; 
&amp;lt;/define&amp;gt;

&amp;lt;timePatterns&amp;gt;
    &amp;lt;use name="csdate"/&amp;gt;
&amp;lt;/timePatterns&amp;gt; 

&amp;lt;datePatterns&amp;gt;
    &amp;lt;use name="csdate"/&amp;gt;
&amp;lt;/datePatterns&amp;gt;
&amp;lt;/datetime&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Regex match exactly year, mont, day, hour and minute.&lt;BR /&gt;
In props.conf I added&lt;/P&gt;

&lt;P&gt;DATETIME_CONFIG = /etc/system/local/datetime.xml&lt;/P&gt;

&lt;P&gt;SHOULD_LINEMERGE = FALSE&lt;/P&gt;

&lt;P&gt;TIME_FORMAT = %Y%m%d%H%M&lt;/P&gt;

&lt;P&gt;Any ideas why data are not indexed with resulting timestamp?&lt;BR /&gt;
I tried to split in 2 regex, for timePatterns and datePatterns match, but the result is still the same.&lt;/P&gt;

&lt;P&gt;Or do you suggest a different way to achieve timestamp override at index time?&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Mon, 05 May 2014 09:18:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Manually-configure-timestamp-at-index-time-from-custom-datetime/m-p/152153#M30960</guid>
      <dc:creator>bizza</dc:creator>
      <dc:date>2014-05-05T09:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Manually configure timestamp at index time from custom datetime.xml</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Manually-configure-timestamp-at-index-time-from-custom-datetime/m-p/152154#M30961</link>
      <description>&lt;P&gt;You don't need a custom &lt;CODE&gt;datetime.xml&lt;/CODE&gt; - I wouldn't do it that way. It is complicated and unnecessary.&lt;/P&gt;

&lt;P&gt;In &lt;CODE&gt;props.conf&lt;/CODE&gt; all you should need is&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SHOULD_LINEMERGE = FALSE
TIME_FORMAT = %Y%m%d%H%M
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Assuming that your timestamp looks like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;201405021209
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If not, please comment with an example or two of the timestamp.&lt;/P&gt;</description>
      <pubDate>Mon, 05 May 2014 19:09:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Manually-configure-timestamp-at-index-time-from-custom-datetime/m-p/152154#M30961</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2014-05-05T19:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: Manually configure timestamp at index time from custom datetime.xml</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Manually-configure-timestamp-at-index-time-from-custom-datetime/m-p/152155#M30962</link>
      <description>&lt;P&gt;The problem is that timestamp is splitted on every lines.&lt;BR /&gt;
For example:&lt;/P&gt;

&lt;P&gt;204023600511105443000           20140422--Y2014--m04--d180000000005.0600000000000041096125031ABDCE     81234567              ABDCE F &amp;amp; C           10024     ABDCE F &amp;amp; C           45399700123456789000000000.104023600582105443000                     386511186636492--H15--M36PSBP                                      &lt;/P&gt;

&lt;P&gt;every line has 300 characters(digits), fields are position-sensitive.&lt;BR /&gt;
I added --Y, --m, --d, --H and --M just before timestamp fields.&lt;/P&gt;

&lt;P&gt;I believe that a custom datetime.xml is my only option.&lt;/P&gt;</description>
      <pubDate>Mon, 05 May 2014 19:16:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Manually-configure-timestamp-at-index-time-from-custom-datetime/m-p/152155#M30962</guid>
      <dc:creator>bizza</dc:creator>
      <dc:date>2014-05-05T19:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Manually configure timestamp at index time from custom datetime.xml</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Manually-configure-timestamp-at-index-time-from-custom-datetime/m-p/152156#M30963</link>
      <description>&lt;P&gt;Did you add the --Y and --m into the event example as an clarification ? &lt;BR /&gt;
otherwise you could try; &lt;BR /&gt;
TIME_PREFIX = \d{numberOfDigits}\s++&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD = 20&lt;BR /&gt;
TIME_FORMAT = %Y%m%d&lt;BR /&gt;
TIME_FORMAT = --Y%Y--m%m--d%d&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:32:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Manually-configure-timestamp-at-index-time-from-custom-datetime/m-p/152156#M30963</guid>
      <dc:creator>lmyrefelt</dc:creator>
      <dc:date>2020-09-28T16:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Manually configure timestamp at index time from custom datetime.xml</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Manually-configure-timestamp-at-index-time-from-custom-datetime/m-p/152157#M30964</link>
      <description>&lt;P&gt;Yes, I added the --Y --m ecc only to show where timestamp fields are.&lt;BR /&gt;
Ignore it and you'll have the original log line.&lt;/P&gt;</description>
      <pubDate>Mon, 05 May 2014 20:48:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Manually-configure-timestamp-at-index-time-from-custom-datetime/m-p/152157#M30964</guid>
      <dc:creator>bizza</dc:creator>
      <dc:date>2014-05-05T20:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Manually configure timestamp at index time from custom datetime.xml</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Manually-configure-timestamp-at-index-time-from-custom-datetime/m-p/152158#M30965</link>
      <description>&lt;P&gt;Problem here I believe was due to actual timestamps in raw event past the default (MAX_TIMESTAMP_LOOKAHEAD) 150 chars.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:44:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Manually-configure-timestamp-at-index-time-from-custom-datetime/m-p/152158#M30965</guid>
      <dc:creator>abonuccelli_spl</dc:creator>
      <dc:date>2020-09-28T16:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: Manually configure timestamp at index time from custom datetime.xml</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Manually-configure-timestamp-at-index-time-from-custom-datetime/m-p/152159#M30966</link>
      <description>&lt;P&gt;Antonio,&lt;BR /&gt;
I'm afraid but that's not the case either. In his/her case, date and time are splitted in the event data, so usual timeformat is more complex to manage. Unfortunately we can't use REGEX for TIME_FORMAT, otherwise that was the solution.&lt;/P&gt;

&lt;P&gt;Marco&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2014 08:22:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Manually-configure-timestamp-at-index-time-from-custom-datetime/m-p/152159#M30966</guid>
      <dc:creator>marcoscala</dc:creator>
      <dc:date>2014-06-04T08:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: Manually configure timestamp at index time from custom datetime.xml</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Manually-configure-timestamp-at-index-time-from-custom-datetime/m-p/152160#M30967</link>
      <description>&lt;P&gt;MMM, well it works for me...&lt;BR /&gt;
Bizza should be able to confirm&lt;BR /&gt;
Antonio&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2014 08:32:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Manually-configure-timestamp-at-index-time-from-custom-datetime/m-p/152160#M30967</guid>
      <dc:creator>abonuccelli_spl</dc:creator>
      <dc:date>2014-06-04T08:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: Manually configure timestamp at index time from custom datetime.xml</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Manually-configure-timestamp-at-index-time-from-custom-datetime/m-p/152161#M30968</link>
      <description>&lt;P&gt;Yes, problem was MAX_TIMESTAMP_LOOKAHEAD.&lt;BR /&gt;
Thanks for your help guys&lt;/P&gt;

&lt;P&gt;ciao&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:47:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Manually-configure-timestamp-at-index-time-from-custom-datetime/m-p/152161#M30968</guid>
      <dc:creator>bizza</dc:creator>
      <dc:date>2020-09-28T16:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: Manually configure timestamp at index time from custom datetime.xml</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Manually-configure-timestamp-at-index-time-from-custom-datetime/m-p/152162#M30969</link>
      <description>&lt;P&gt;Hi in my log event and filename date is not present i want give a fix date to log so what is do ?&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2015 06:09:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Manually-configure-timestamp-at-index-time-from-custom-datetime/m-p/152162#M30969</guid>
      <dc:creator>nitesh218ss</dc:creator>
      <dc:date>2015-05-12T06:09:33Z</dc:date>
    </item>
  </channel>
</rss>

