<?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: time_prefix question in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/time-prefix-question/m-p/53985#M10413</link>
    <description>&lt;P&gt;props.conf should look like this &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[funnydate]
TIME_PREFIX=^\w{10},\d{6},
TIME_FORMAT=%Y,%m,%d
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;where funnydate is your sourcetype&lt;/P&gt;

&lt;P&gt;Few things to consider&lt;/P&gt;

&lt;P&gt;This should have worked :  &lt;CODE&gt;TIME_PREFIX=IDCJAC0010,\d{6},&lt;/CODE&gt; so maybe the stanza &lt;CODE&gt;[funnydate]&lt;/CODE&gt; in props.conf is wrong and not applying the conf - can you post the whole section from props.conf and inputs.conf ?&lt;/P&gt;

&lt;P&gt;You &lt;EM&gt;cannot&lt;/EM&gt; define time_prefix and time_format on a universal forwarder - this needs to be done on an indexer / heavy forwarder&lt;/P&gt;</description>
    <pubDate>Thu, 07 Mar 2013 08:06:04 GMT</pubDate>
    <dc:creator>jonuwz</dc:creator>
    <dc:date>2013-03-07T08:06:04Z</dc:date>
    <item>
      <title>time_prefix question</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/time-prefix-question/m-p/53983#M10411</link>
      <description>&lt;P&gt;i've got a CSV file that has a date that isn't at the start of the line, im trying to get splunk to look for the date but can't get it to work...&lt;/P&gt;

&lt;P&gt;Here's a small bit of the data in the CSV file (it's a CSV from the BOM):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;IDCJAC0010,086071,2013,02,27,27.6,1,N
IDCJAC0010,086071,2013,02,28,21.4,1,N
IDCJAC0010,086071,2013,03,01,25.1,1,N
IDCJAC0010,086071,2013,03,02,26.9,1,N
IDCJAC0010,086071,2013,03,03,29.1,1,N
IDCJAC0010,086071,2013,03,04,32.7,1,N
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The date begins at "2013" (for year), then "03" (month) and then "04" (date).&lt;/P&gt;

&lt;P&gt;i've tried using the props thingy to tell splunk where the date is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# your settings
NO_BINARY_CHECK=1
SHOULD_LINEMERGE=false
TIME_PREFIX=\{d10},{d6},
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;i've tried&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX=\{d6},
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or no time prefix and just&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_FORMAT=%Y,%m,%d
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX=IDCJAC0010,\d{6},
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX=\{d10},\{d6},
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and some other variations which i've now forgotten.&lt;/P&gt;

&lt;P&gt;Anyone got any ideas for me? Im sure it's something simple i've missed...&lt;/P&gt;

&lt;P&gt;DS&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2013 05:33:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/time-prefix-question/m-p/53983#M10411</guid>
      <dc:creator>danielsimpkins</dc:creator>
      <dc:date>2013-03-07T05:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: time_prefix question</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/time-prefix-question/m-p/53984#M10412</link>
      <description>&lt;P&gt;When you say {d10} and {d6} you actually mean d{10} and d{6} yeah ?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2013 07:50:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/time-prefix-question/m-p/53984#M10412</guid>
      <dc:creator>jonuwz</dc:creator>
      <dc:date>2013-03-07T07:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: time_prefix question</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/time-prefix-question/m-p/53985#M10413</link>
      <description>&lt;P&gt;props.conf should look like this &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[funnydate]
TIME_PREFIX=^\w{10},\d{6},
TIME_FORMAT=%Y,%m,%d
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;where funnydate is your sourcetype&lt;/P&gt;

&lt;P&gt;Few things to consider&lt;/P&gt;

&lt;P&gt;This should have worked :  &lt;CODE&gt;TIME_PREFIX=IDCJAC0010,\d{6},&lt;/CODE&gt; so maybe the stanza &lt;CODE&gt;[funnydate]&lt;/CODE&gt; in props.conf is wrong and not applying the conf - can you post the whole section from props.conf and inputs.conf ?&lt;/P&gt;

&lt;P&gt;You &lt;EM&gt;cannot&lt;/EM&gt; define time_prefix and time_format on a universal forwarder - this needs to be done on an indexer / heavy forwarder&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2013 08:06:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/time-prefix-question/m-p/53985#M10413</guid>
      <dc:creator>jonuwz</dc:creator>
      <dc:date>2013-03-07T08:06:04Z</dc:date>
    </item>
  </channel>
</rss>

