<?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: Indexer ignoring Time_Format settings in forwarder props.conf in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Indexer-ignoring-Time-Format-settings-in-forwarder-props-conf/m-p/81086#M16729</link>
    <description>&lt;P&gt;Ayn always beats me to it...and he picked up two other issues...DOH!&lt;/P&gt;</description>
    <pubDate>Thu, 03 Oct 2013 12:30:56 GMT</pubDate>
    <dc:creator>sdaniels</dc:creator>
    <dc:date>2013-10-03T12:30:56Z</dc:date>
    <item>
      <title>Indexer ignoring Time_Format settings in forwarder props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexer-ignoring-Time-Format-settings-in-forwarder-props-conf/m-p/81083#M16726</link>
      <description>&lt;P&gt;I have events in plain text format like this:&lt;/P&gt;

&lt;P&gt;"[Process Id:3952 Thread Id: 4152] 03/10/2013 12:44:58 GetComponentDetailsFromXMLLookup - sXMLCategory = General"&lt;/P&gt;

&lt;P&gt;however, the event times are being indexed as:&lt;BR /&gt;
10/03/2013 12:44:58.000  "[Process Id:3952 Thread Id: 4152] 03/10/2013 12:44:58 GetComponentDetailsFromXMLLookup - sXMLCategory = General"&lt;/P&gt;

&lt;P&gt;The fowarder is the Windows machine.&lt;/P&gt;

&lt;P&gt;The forwarder props.conf:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[splunkd]&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;EXTRACT-fields = (?i)^(?:[^ ]* ){2}(?:[+\-]\d+ )?(?P&amp;lt;log_level&amp;gt;[^ ]*)\s+(?P&amp;lt;component&amp;gt;[^ ]+) - (?P&amp;lt;message&amp;gt;.+)&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[splunk_web_service]&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;EXTRACT-useragent = userAgent=(?P&amp;lt;browser&amp;gt;[^ (]+)&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[sourcetype:&amp;lt;mysourcetype&amp;gt;]&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;MAX_TIMESTAMP_LOOKAHEAD = 19&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;TIME_FORMAT = %d/%m/%Y %H:%M:%S&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;TIME_PREFIX = ]&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;and the forwarder inputs.conf:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[monitor://&amp;lt;mylogfilepath&amp;gt;]&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;disabled = false&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;host = &amp;lt;myhost&amp;gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;sourcetype = &amp;lt;mysourcetype&amp;gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;source = &amp;lt;mysource&amp;gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index = &amp;lt;myindex&amp;gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I have attempted to delete the local forwarder fishbucket directory and restart the forwarder to no avail. Is there some configuration missing?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2013 12:20:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexer-ignoring-Time-Format-settings-in-forwarder-props-conf/m-p/81083#M16726</guid>
      <dc:creator>hastingsjay</dc:creator>
      <dc:date>2013-10-03T12:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: Indexer ignoring Time_Format settings in forwarder props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexer-ignoring-Time-Format-settings-in-forwarder-props-conf/m-p/81084#M16727</link>
      <description>&lt;P&gt;You should check the splunkd.log on your forwarder (it's in &lt;CODE&gt;$SPLUNK_HOME\var\log\splunk\splunkd.log&lt;/CODE&gt;). I see a couple of issues with your config:&lt;/P&gt;

&lt;P&gt;You have a stanza with &lt;CODE&gt;[sourcetype:&amp;lt;mysourcetype&amp;gt;]&lt;/CODE&gt;. You don't need to specify &lt;CODE&gt;sourcetype&lt;/CODE&gt; in the stanza, but if you do, it should be with TWO colons. So, either &lt;CODE&gt;[sourcetype::mysourcetype]&lt;/CODE&gt; or just &lt;CODE&gt;[mysourcetype]&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;Then, you have a &lt;CODE&gt;TIME_PREFIX&lt;/CODE&gt; consisting of a sole &lt;CODE&gt;]&lt;/CODE&gt;. I'm not entirely sure how this is handled, but &lt;CODE&gt;]&lt;/CODE&gt; is a special character in regular expressions, which is what's used for &lt;CODE&gt;TIME_PREFIX&lt;/CODE&gt;. If you want to match a literal &lt;CODE&gt;]&lt;/CODE&gt; you should escape it - &lt;CODE&gt;TIME_PREFIX = \]&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Finally it's useless to have field extractions on a forwarder. Field extraction happens at search-time, so all those definitions should go on the Splunk instance you're searching on only. It doesn't throw an error if you put that kind of stuff on a forwarder, there's just no reason for it to be there.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2013 12:25:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexer-ignoring-Time-Format-settings-in-forwarder-props-conf/m-p/81084#M16727</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-10-03T12:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Indexer ignoring Time_Format settings in forwarder props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexer-ignoring-Time-Format-settings-in-forwarder-props-conf/m-p/81085#M16728</link>
      <description>&lt;P&gt;Extracting the time stamps is done on the indexer and not the forwarder (unless it's a heavy forwarder of course).  Assuming you are using a heavy forwarder here?  If it's the universal forwarder then you'll need to move those settings to the indexer for that sourcetype.&lt;/P&gt;

&lt;P&gt;It looks like you've got the right settings on TIME_FORMAT except you have '/' in there and i'm guessing that will also be an issue.  Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_FORMAT = %d %m %Y %H:%M:%S
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Take a look at the docs for the different types of forwarders:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0/Forwarding/Typesofforwarders"&gt;http://docs.splunk.com/Documentation/Splunk/6.0/Forwarding/Typesofforwarders&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2013 12:29:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexer-ignoring-Time-Format-settings-in-forwarder-props-conf/m-p/81085#M16728</guid>
      <dc:creator>sdaniels</dc:creator>
      <dc:date>2013-10-03T12:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: Indexer ignoring Time_Format settings in forwarder props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexer-ignoring-Time-Format-settings-in-forwarder-props-conf/m-p/81086#M16729</link>
      <description>&lt;P&gt;Ayn always beats me to it...and he picked up two other issues...DOH!&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2013 12:30:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexer-ignoring-Time-Format-settings-in-forwarder-props-conf/m-p/81086#M16729</guid>
      <dc:creator>sdaniels</dc:creator>
      <dc:date>2013-10-03T12:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Indexer ignoring Time_Format settings in forwarder props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexer-ignoring-Time-Format-settings-in-forwarder-props-conf/m-p/81087#M16730</link>
      <description>&lt;P&gt;Couldn't see any errors being generated in the splunkd.log on the forwarder. To clarify we are using a universal forwarder.&lt;/P&gt;

&lt;P&gt;Do I need to include the stanza entry (and parameters) in the props.conf on the indexer instance $SPLUNK_HOME/etc/system/local ?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2013 13:15:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexer-ignoring-Time-Format-settings-in-forwarder-props-conf/m-p/81087#M16730</guid>
      <dc:creator>hastingsjay</dc:creator>
      <dc:date>2013-10-03T13:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: Indexer ignoring Time_Format settings in forwarder props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexer-ignoring-Time-Format-settings-in-forwarder-props-conf/m-p/81088#M16731</link>
      <description>&lt;P&gt;Couldn't see any errors being generated in the splunkd.log on the forwarder. To clarify we are using a universal forwarder.&lt;/P&gt;

&lt;P&gt;Do I need to include the stanza entry (and parameters) in the props.conf on the indexer instance $SPLUNK_HOME/etc/system/local ?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2013 13:15:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexer-ignoring-Time-Format-settings-in-forwarder-props-conf/m-p/81088#M16731</guid>
      <dc:creator>hastingsjay</dc:creator>
      <dc:date>2013-10-03T13:15:24Z</dc:date>
    </item>
  </channel>
</rss>

