<?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 do I edit my props.conf for proper timestamp extraction from my sample log entry? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-conf-for-proper-timestamp-extraction-from/m-p/272008#M52268</link>
    <description>&lt;P&gt;I fixed it by creating a custom datetime.xml in the end &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Dec 2015 14:05:58 GMT</pubDate>
    <dc:creator>mark19632</dc:creator>
    <dc:date>2015-12-17T14:05:58Z</dc:date>
    <item>
      <title>How do I edit my props.conf for proper timestamp extraction from my sample log entry?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-conf-for-proper-timestamp-extraction-from/m-p/272003#M52263</link>
      <description>&lt;P&gt;I'm having trouble with a log and getting Splunk to recognize the time format.&lt;/P&gt;

&lt;P&gt;Here is an example a log entry:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;010406:00:530000000000000040RD000001071215 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now, all the entries start with &lt;CODE&gt;0104&lt;/CODE&gt; followed by the time in &lt;CODE&gt;H:M:S&lt;/CODE&gt; format.&lt;/P&gt;

&lt;P&gt;I've added a props.conf to the indexer like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sisfeedlog]
TIME_PREFIX = ^0104
TIME_FORMAT = %H:%M:%S
MAX_TIMESTAMP_LOOKAHEAD = 8
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and a props.conf on the server:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::...\\SISFeed\\S(\d+\.LOG)]
sourcetype = sisfeedlog
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It doesn't seem to be working though as the time isn't being extracted and the sourcetype is coming up as unknown.&lt;/P&gt;

&lt;P&gt;Any advise on why it's not working?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2015 23:13:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-conf-for-proper-timestamp-extraction-from/m-p/272003#M52263</guid>
      <dc:creator>mark19632</dc:creator>
      <dc:date>2015-12-14T23:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit my props.conf for proper timestamp extraction from my sample log entry?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-conf-for-proper-timestamp-extraction-from/m-p/272004#M52264</link>
      <description>&lt;P&gt;Hi mark19632,&lt;/P&gt;

&lt;P&gt;when defining a stanza in &lt;CODE&gt;props.conf&lt;/CODE&gt; you can only use a limited set of regexes:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;When setting a [&amp;lt;spec&amp;gt;] stanza, you can use the following regex-type syntax:
... recurses through directories until the match is met
    or equivalently, matches any number of characters.
*   matches anything but the path separator 0 or more times.
    The path separator is '/' on unix, or '\' on windows.
    Intended to match a partial or complete directory or filename.
|   is equivalent to 'or'
( ) are used to limit scope of |.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So, your &lt;CODE&gt;[source::...\\SISFeed\\S(\d+\.LOG)]&lt;/CODE&gt; will not work since &lt;CODE&gt;\d+&lt;/CODE&gt; is not supported. &lt;BR /&gt;
What would work, is this &lt;CODE&gt;[source::...\\SISFeed\\S*.LOG]&lt;/CODE&gt; but I don't know if this is matching the correct directory..... BTW why don't you set the sourcetype in the servers &lt;CODE&gt;inputs.conf&lt;/CODE&gt;?&lt;/P&gt;

&lt;P&gt;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;

&lt;P&gt;PS: your &lt;CODE&gt;props.conf&lt;/CODE&gt; on the indexer looks fine.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2015 00:14:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-conf-for-proper-timestamp-extraction-from/m-p/272004#M52264</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-12-15T00:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit my props.conf for proper timestamp extraction from my sample log entry?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-conf-for-proper-timestamp-extraction-from/m-p/272005#M52265</link>
      <description>&lt;P&gt;Thanks MUS,  I've added it to the inputs.conf and picking up the sourcetype and the time correctly &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Now for the next problem!&lt;/P&gt;

&lt;P&gt;The log files are named   s*date*.log  eg S15122015 .log for today.&lt;/P&gt;

&lt;P&gt;When read in the logs are showing as the incorrect date, so 06122015 is being picked up as 12th of July rather than the 6th of December.&lt;/P&gt;

&lt;P&gt;Can I change this?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:07:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-conf-for-proper-timestamp-extraction-from/m-p/272005#M52265</guid>
      <dc:creator>mark19632</dc:creator>
      <dc:date>2020-09-29T08:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit my props.conf for proper timestamp extraction from my sample log entry?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-conf-for-proper-timestamp-extraction-from/m-p/272006#M52266</link>
      <description>&lt;P&gt;use the &lt;CODE&gt;TIME_FORMAT =&lt;/CODE&gt; option in &lt;CODE&gt;props.conf&lt;/CODE&gt; to set the format of your time string to something like this &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; TIME_FORMAT = %d%m%Y
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;see the docs for more details about the time strings &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.1/SearchReference/Commontimeformatvariables"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.1/SearchReference/Commontimeformatvariables&lt;/A&gt; and the props.conf setting &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.1/Admin/Propsconf"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.1/Admin/Propsconf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2015 19:49:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-conf-for-proper-timestamp-extraction-from/m-p/272006#M52266</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-12-15T19:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit my props.conf for proper timestamp extraction from my sample log entry?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-conf-for-proper-timestamp-extraction-from/m-p/272007#M52267</link>
      <description>&lt;P&gt;I've tried that and it's made no difference unfortuantly&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2015 09:00:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-conf-for-proper-timestamp-extraction-from/m-p/272007#M52267</guid>
      <dc:creator>mark19632</dc:creator>
      <dc:date>2015-12-16T09:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit my props.conf for proper timestamp extraction from my sample log entry?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-conf-for-proper-timestamp-extraction-from/m-p/272008#M52268</link>
      <description>&lt;P&gt;I fixed it by creating a custom datetime.xml in the end &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2015 14:05:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-props-conf-for-proper-timestamp-extraction-from/m-p/272008#M52268</guid>
      <dc:creator>mark19632</dc:creator>
      <dc:date>2015-12-17T14:05:58Z</dc:date>
    </item>
  </channel>
</rss>

