<?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: Timestamp from file with no year in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-from-file-with-no-year/m-p/58149#M11390</link>
    <description>&lt;P&gt;why do you have &lt;CODE&gt;TIME_PREFIX = dst&lt;/CODE&gt;? What does the actual event line look like? Does it actually contain that string immediately before the timestamp?&lt;/P&gt;</description>
    <pubDate>Thu, 26 Jan 2012 05:04:23 GMT</pubDate>
    <dc:creator>gkanapathy</dc:creator>
    <dc:date>2012-01-26T05:04:23Z</dc:date>
    <item>
      <title>Timestamp from file with no year</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-from-file-with-no-year/m-p/58146#M11387</link>
      <description>&lt;P&gt;I have a time-stamp in format Wed Jan 25 16:36:02 EST.  I can't get Splunk to match it.&lt;BR /&gt;
I tried modifying the props.conf:&lt;BR /&gt;
[host::rok*]&lt;BR /&gt;
TIME_PREFIX = dst&lt;BR /&gt;
TIME_FORMAT = %a %b %d %H:%M:%S %Z&lt;/P&gt;

&lt;P&gt;But it doesn't recognize the pattern.  Am I missing something?&lt;BR /&gt;
Full-event line:&lt;BR /&gt;
dst Thu Jan 26 07:45:12 EST 10.10.1.2:vmwsspapp02_prd_data01 rok:vmwsspapp02_prd_data01 Start&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 10:21:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-from-file-with-no-year/m-p/58146#M11387</guid>
      <dc:creator>billysmusic</dc:creator>
      <dc:date>2020-09-28T10:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp from file with no year</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-from-file-with-no-year/m-p/58147#M11388</link>
      <description>&lt;P&gt;You appear to be missing the year match in your conf file.  The pattern to match your time-stamp should be:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;%a %b %d %Y %H:%M:%S %Z
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Jan 2012 01:02:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-from-file-with-no-year/m-p/58147#M11388</guid>
      <dc:creator>sbrant_tt</dc:creator>
      <dc:date>2012-01-26T01:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp from file with no year</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-from-file-with-no-year/m-p/58148#M11389</link>
      <description>&lt;P&gt;Oops, I accidentally put the year in source format.  It is actually not there.  I updated my question with the correct format.  Thank you for responding though.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2012 01:08:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-from-file-with-no-year/m-p/58148#M11389</guid>
      <dc:creator>billysmusic</dc:creator>
      <dc:date>2012-01-26T01:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp from file with no year</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-from-file-with-no-year/m-p/58149#M11390</link>
      <description>&lt;P&gt;why do you have &lt;CODE&gt;TIME_PREFIX = dst&lt;/CODE&gt;? What does the actual event line look like? Does it actually contain that string immediately before the timestamp?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2012 05:04:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-from-file-with-no-year/m-p/58149#M11390</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2012-01-26T05:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp from file with no year</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-from-file-with-no-year/m-p/58150#M11391</link>
      <description>&lt;P&gt;I agree with @gkanapathy, we cannot really recommend a configuration without a sample event to base it on.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2012 05:41:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-from-file-with-no-year/m-p/58150#M11391</guid>
      <dc:creator>hexx</dc:creator>
      <dc:date>2012-01-26T05:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp from file with no year</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-from-file-with-no-year/m-p/58151#M11392</link>
      <description>&lt;P&gt;Sure, here is a full line of an event:&lt;BR /&gt;
dst Thu Jan 26 07:45:12 EST 10.10.1.2:vmwsspapp02_prd_data01 rok:vmwsspapp02_prd_data01 Start&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 10:21:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-from-file-with-no-year/m-p/58151#M11392</guid>
      <dc:creator>billysmusic</dc:creator>
      <dc:date>2020-09-28T10:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp from file with no year</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-from-file-with-no-year/m-p/58152#M11393</link>
      <description>&lt;P&gt;Thank you for providing a sample event.&lt;/P&gt;

&lt;P&gt;Splunk should be able to interpret the time stamp on its own, but I would strongly recommend that you use &lt;CODE&gt;TIME_PREFIX&lt;/CODE&gt; and &lt;CODE&gt;MAX_TIMESTAMP_LOOKAHEAD&lt;/CODE&gt; to scope the time stamp extraction to the location in your events where it can be found :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[host::rok*]
TIME_PREFIX = ^dst
MAX_TIMESTAMP_LOOKAHEAD = 24
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is very important because you &lt;STRONG&gt;do not&lt;/STRONG&gt; want Splunk to pick up a string that may look like a year somewhere else in the event, which may result in a wrong time stamp.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt; is optional here, but you can specify it if desired to speed up the time stamp extraction process.&lt;/P&gt;

&lt;P&gt;Make sure to refer to &lt;A href="http://www.splunk.com/base/Documentation/latest/Admin/Propsconf" target="_blank"&gt;props.conf.spec&lt;/A&gt; for a full description of these configuration keys.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;UPDATE:&lt;/STRONG&gt; Since you seem to have line-breaking issues, I would suggest that you add the following configuration keys to explicitly declare how your source file should be split into events:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;LINE_BREAKER = ([\r\n]+)dst\s+
SHOULD_LINEMERGE = false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is assuming that &lt;STRONG&gt;all&lt;/STRONG&gt; of your events begin with the string "dst ", and that no line that is not an event begins with that string.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 10:21:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-from-file-with-no-year/m-p/58152#M11393</guid>
      <dc:creator>hexx</dc:creator>
      <dc:date>2020-09-28T10:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp from file with no year</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-from-file-with-no-year/m-p/58153#M11394</link>
      <description>&lt;P&gt;Thanks for the suggestion.  I just tried both of those and left out the TIME_FORMAT with no luck.  It still sees the entire log as one event.  I've also messed around with every setting I can think of in the "Data Preview" section when adding the source but cannot get it to recognize each individual line.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2012 18:00:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-from-file-with-no-year/m-p/58153#M11394</guid>
      <dc:creator>billysmusic</dc:creator>
      <dc:date>2012-01-26T18:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp from file with no year</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-from-file-with-no-year/m-p/58154#M11395</link>
      <description>&lt;P&gt;That means that you have an issue with line-breaking, which has to be addressed with different parameters. I'll update my answer.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2012 18:02:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-from-file-with-no-year/m-p/58154#M11395</guid>
      <dc:creator>hexx</dc:creator>
      <dc:date>2012-01-26T18:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp from file with no year</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-from-file-with-no-year/m-p/58155#M11396</link>
      <description>&lt;P&gt;If the log is not too old, i think below should work.&lt;/P&gt;

&lt;P&gt;MAX_DAYS_AGO = 100&lt;/P&gt;

&lt;P&gt;TIME_FORMAT = %a %b %d %H:%M:%S %Z&lt;/P&gt;

&lt;P&gt;TIME_PREFIX = ^dst\s+&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:19:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-from-file-with-no-year/m-p/58155#M11396</guid>
      <dc:creator>walterleunghk</dc:creator>
      <dc:date>2020-09-28T15:19:35Z</dc:date>
    </item>
  </channel>
</rss>

