<?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 make Splunk recognize a timestamp that is logged across 2 fields with 3 digit time in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-make-Splunk-recognize-a-timestamp-that-is-logged-across-2/m-p/317374#M59337</link>
    <description>&lt;P&gt;Thanks for the nudge to re-visit the datetime.xml method, after stripping right back to basics and building from the ground up I managed to get it to parse the timestamp correctly with a custom config and stress level has now been greatly reduced&lt;/P&gt;</description>
    <pubDate>Mon, 04 Dec 2017 09:13:46 GMT</pubDate>
    <dc:creator>paulbannister</dc:creator>
    <dc:date>2017-12-04T09:13:46Z</dc:date>
    <item>
      <title>How to make Splunk recognize a timestamp that is logged across 2 fields with 3 digit time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-make-Splunk-recognize-a-timestamp-that-is-logged-across-2/m-p/317368#M59331</link>
      <description>&lt;P&gt;I'm currently monitoring a directory of CSV files with a universal forwarder (UF) that has the timestamp split across 2 fields, which isn't a problem if the time is after midday:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;14-Nov-17,SOME_RANDOM_DATA,1525&lt;/EM&gt;&lt;/STRONG&gt; &lt;/P&gt;

&lt;P&gt;Which gives me the following correct timestamp (11/14/17 3:25:00.000 PM)&lt;/P&gt;

&lt;P&gt;However before midday the time appears in a 3 digit format:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;14-Nov-17,SOME_RANDOM_DATA,740&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Which should give me (11/14/17 7:40:00.000 AM), but Splunk just won't recognize the 3 digit format.&lt;/P&gt;

&lt;P&gt;I've tried every combination of Date\Time format variables I can think of and even made an attempt at a custom datetime config but all to no avail.&lt;/P&gt;

&lt;P&gt;I hoping I'm overlooking a simple solution but any insight anyone can offer will be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:03:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-make-Splunk-recognize-a-timestamp-that-is-logged-across-2/m-p/317368#M59331</guid>
      <dc:creator>paulbannister</dc:creator>
      <dc:date>2020-09-29T17:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to make Splunk recognize a timestamp that is logged across 2 fields with 3 digit time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-make-Splunk-recognize-a-timestamp-that-is-logged-across-2/m-p/317369#M59332</link>
      <description>&lt;P&gt;If you index a line like the working example above, but well after the fact (specifically on a different date that the event itself), does it still work?  For example, if you index the event &lt;CODE&gt;14-Nov-17,SOME_RANDOM_DATA,1525&lt;/CODE&gt; right now what does it parse the timestamp as?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2017 22:04:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-make-Splunk-recognize-a-timestamp-that-is-logged-across-2/m-p/317369#M59332</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2017-12-01T22:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to make Splunk recognize a timestamp that is logged across 2 fields with 3 digit time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-make-Splunk-recognize-a-timestamp-that-is-logged-across-2/m-p/317370#M59333</link>
      <description>&lt;P&gt;@paulbannister, For Splunk to recognize your Time field as valid time either you will have to &lt;CODE&gt;prefix single digit Hour and Minute with zero&lt;/CODE&gt; in your CSV being inserted or &lt;CODE&gt;have colon as the separator between hour and minute&lt;/CODE&gt;. The &lt;CODE&gt;strptime()&lt;/CODE&gt; function in Splunk will not be able to confirm which is Hour and which is minute otherwise. Also what if your time is &lt;CODE&gt;07:04&lt;/CODE&gt;, your CSV will have &lt;CODE&gt;74&lt;/CODE&gt; which is even more confusing for time.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Dec 2017 17:16:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-make-Splunk-recognize-a-timestamp-that-is-logged-across-2/m-p/317370#M59333</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-12-02T17:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to make Splunk recognize a timestamp that is logged across 2 fields with 3 digit time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-make-Splunk-recognize-a-timestamp-that-is-logged-across-2/m-p/317371#M59334</link>
      <description>&lt;P&gt;Take over complete control with &lt;CODE&gt;datetime.xml&lt;/CODE&gt;:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://www.function1.com/2013/01/oh-no-splunking-log-files-with-multiple-formats-no-problem"&gt;https://www.function1.com/2013/01/oh-no-splunking-log-files-with-multiple-formats-no-problem&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Dec 2017 18:39:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-make-Splunk-recognize-a-timestamp-that-is-logged-across-2/m-p/317371#M59334</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-12-03T18:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to make Splunk recognize a timestamp that is logged across 2 fields with 3 digit time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-make-Splunk-recognize-a-timestamp-that-is-logged-across-2/m-p/317372#M59335</link>
      <description>&lt;P&gt;The data will index just fine in the above case, as I'm using old data as it is anyway to test, the only issue occurs when it the time is before midday and the first 0 is omitted from the time field, in which case Splunk defaults to the event time of the previous event &lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2017 08:47:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-make-Splunk-recognize-a-timestamp-that-is-logged-across-2/m-p/317372#M59335</guid>
      <dc:creator>paulbannister</dc:creator>
      <dc:date>2017-12-04T08:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to make Splunk recognize a timestamp that is logged across 2 fields with 3 digit time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-make-Splunk-recognize-a-timestamp-that-is-logged-across-2/m-p/317373#M59336</link>
      <description>&lt;P&gt;The source doesn't remove all 0's from the data, merely the initial 0 from the time field ( so 07:04 would be displayed as 704 in the csv) so this is most likely how the source system has the export field formatted. We have looked into pre-formatting the csv but this involves a manual step using excel which I am trying to avoid (although we may try and setup an idiot proof macro if needed, but again I'd rather avoid a manual step) and unfortunately the source system doesn't allow much in the form of customization of exports&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2017 08:52:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-make-Splunk-recognize-a-timestamp-that-is-logged-across-2/m-p/317373#M59336</guid>
      <dc:creator>paulbannister</dc:creator>
      <dc:date>2017-12-04T08:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to make Splunk recognize a timestamp that is logged across 2 fields with 3 digit time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-make-Splunk-recognize-a-timestamp-that-is-logged-across-2/m-p/317374#M59337</link>
      <description>&lt;P&gt;Thanks for the nudge to re-visit the datetime.xml method, after stripping right back to basics and building from the ground up I managed to get it to parse the timestamp correctly with a custom config and stress level has now been greatly reduced&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2017 09:13:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-make-Splunk-recognize-a-timestamp-that-is-logged-across-2/m-p/317374#M59337</guid>
      <dc:creator>paulbannister</dc:creator>
      <dc:date>2017-12-04T09:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to make Splunk recognize a timestamp that is logged across 2 fields with 3 digit time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-make-Splunk-recognize-a-timestamp-that-is-logged-across-2/m-p/317375#M59338</link>
      <description>&lt;P&gt;I created a datetime.xml file following the instructions in that link and all I get is an error about "Couldn't find 'timePatterns' in config data for AggregatorProcessor"...any idea what that means?&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 11:49:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-make-Splunk-recognize-a-timestamp-that-is-logged-across-2/m-p/317375#M59338</guid>
      <dc:creator>gregbo</dc:creator>
      <dc:date>2018-05-24T11:49:24Z</dc:date>
    </item>
  </channel>
</rss>

