<?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 Getting time stamps correctly. in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Getting-time-stamps-correctly/m-p/39886#M7420</link>
    <description>&lt;P&gt;I'm trying to get a csv file correctly indexed. I can't however seem to get the timestamp props.conf to work correctly.&lt;/P&gt;

&lt;P&gt;This is a line of sample data.&lt;/P&gt;

&lt;P&gt;A5,2012:04:30:03:48:24,AAAA,1,1,10000,0000,2012:04:30:03:48:24,0711111111,249,1800111111,07111110,,AAAA,0&lt;/P&gt;

&lt;P&gt;This is the resulting time stamp.&lt;/P&gt;

&lt;P&gt;Incorrect format : 11/12/2010 04:30:03.400&lt;BR /&gt;
Correct format   : 30/04/2012 03:48:24&lt;/P&gt;

&lt;P&gt;And these are my config's.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Inputs.conf
[monitor://C:\sampledata.20120430035907.Z]
disabled = false
followTail = 0
host = LOG_HOST
index = MY_LOG
sourcetype = LOG

props.conf
[LOG]
BREAK_ONLY_BEFORE = ^A5,*
NO_BINARY_CHECK = 1
SHOULD_LINEMERGE = true
TIME_FORMAT = %Y:%m:%d:%H:%M:%S
TIME_PREFIX = A5,
pulldown_type = 1
TRANSFORMS-log = log_extractions

[log-extractions]
DELIMS = ","
FIELDS = "field1","field2" etc etc etc
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I used the timeprefix to try and get it to detect the first time entry.&lt;/P&gt;

&lt;P&gt;The field extraction works fine just not the initial time stamp detection.&lt;/P&gt;</description>
    <pubDate>Tue, 01 May 2012 04:14:29 GMT</pubDate>
    <dc:creator>Lucas_K</dc:creator>
    <dc:date>2012-05-01T04:14:29Z</dc:date>
    <item>
      <title>Getting time stamps correctly.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Getting-time-stamps-correctly/m-p/39886#M7420</link>
      <description>&lt;P&gt;I'm trying to get a csv file correctly indexed. I can't however seem to get the timestamp props.conf to work correctly.&lt;/P&gt;

&lt;P&gt;This is a line of sample data.&lt;/P&gt;

&lt;P&gt;A5,2012:04:30:03:48:24,AAAA,1,1,10000,0000,2012:04:30:03:48:24,0711111111,249,1800111111,07111110,,AAAA,0&lt;/P&gt;

&lt;P&gt;This is the resulting time stamp.&lt;/P&gt;

&lt;P&gt;Incorrect format : 11/12/2010 04:30:03.400&lt;BR /&gt;
Correct format   : 30/04/2012 03:48:24&lt;/P&gt;

&lt;P&gt;And these are my config's.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Inputs.conf
[monitor://C:\sampledata.20120430035907.Z]
disabled = false
followTail = 0
host = LOG_HOST
index = MY_LOG
sourcetype = LOG

props.conf
[LOG]
BREAK_ONLY_BEFORE = ^A5,*
NO_BINARY_CHECK = 1
SHOULD_LINEMERGE = true
TIME_FORMAT = %Y:%m:%d:%H:%M:%S
TIME_PREFIX = A5,
pulldown_type = 1
TRANSFORMS-log = log_extractions

[log-extractions]
DELIMS = ","
FIELDS = "field1","field2" etc etc etc
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I used the timeprefix to try and get it to detect the first time entry.&lt;/P&gt;

&lt;P&gt;The field extraction works fine just not the initial time stamp detection.&lt;/P&gt;</description>
      <pubDate>Tue, 01 May 2012 04:14:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Getting-time-stamps-correctly/m-p/39886#M7420</guid>
      <dc:creator>Lucas_K</dc:creator>
      <dc:date>2012-05-01T04:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Getting time stamps correctly.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Getting-time-stamps-correctly/m-p/39887#M7421</link>
      <description>&lt;P&gt;solved it myself.&lt;/P&gt;

&lt;P&gt;Incorrect.&lt;BR /&gt;
TIME_FORMAT = %Y:%m:%d:%H:%M:%S&lt;/P&gt;

&lt;P&gt;Correct.&lt;BR /&gt;
TIME_FORMAT=%Y:%m:%d:%H:%M:%S&lt;/P&gt;

&lt;P&gt;It was literally looking for the white space in each of that statement.&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2012 01:22:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Getting-time-stamps-correctly/m-p/39887#M7421</guid>
      <dc:creator>Lucas_K</dc:creator>
      <dc:date>2012-05-03T01:22:32Z</dc:date>
    </item>
  </channel>
</rss>

