<?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 to configure Splunk to extract the correct year from the date stamp in my sample log? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-configure-Splunk-to-extract-the-correct-year-from-the/m-p/214772#M62978</link>
    <description>&lt;P&gt;I added this to the props.conf stanza on the search head under system/local/ and it didn't help. I am still getting logs with wrong year in them. &lt;/P&gt;</description>
    <pubDate>Wed, 22 Jun 2016 02:01:53 GMT</pubDate>
    <dc:creator>daniel_augustyn</dc:creator>
    <dc:date>2016-06-22T02:01:53Z</dc:date>
    <item>
      <title>How to configure Splunk to extract the correct year from the date stamp in my sample log?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-configure-Splunk-to-extract-the-correct-year-from-the/m-p/214770#M62976</link>
      <description>&lt;P&gt;I am not sure how to fix the date extraction from a raw log which is done by default by Splunk. Splunk extracts date by default and it's not doing the year correctly. &lt;/P&gt;

&lt;P&gt;This is the raw log: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Jun 21 00:00:32 10.20.14.12 Jun 20 17:00:32 : 2016/06/20 17:00:32 PDT,1,7016505,L2 Poll Failed,0,10596,,LAB,10.18.8.1,,L2 Poll failed to read hosts from LAB.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And this is date that is getting extracted: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;6/20/12 5:00:32.000 PM
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Anyone knows how to fix it? &lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2016 00:09:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-configure-Splunk-to-extract-the-correct-year-from-the/m-p/214770#M62976</guid>
      <dc:creator>daniel_augustyn</dc:creator>
      <dc:date>2016-06-21T00:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Splunk to extract the correct year from the date stamp in my sample log?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-configure-Splunk-to-extract-the-correct-year-from-the/m-p/214771#M62977</link>
      <description>&lt;P&gt;Do you have any way of modifying the format of these logs? Ideally the first portion of your log would be a valid timestamp. In this case Splunk is getting confused because it sees a portion of a valid date at the beginning of the log.&lt;/P&gt;

&lt;P&gt;You may be able to work around it using the following, assuming this is your timestamp: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2016/06/20 17:00:32 PDT
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You'll need to configure a props.conf file to recognize this.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[your_sourcetype] 
TIME_PREFIX = ^.*\s:\s
MAX_TIMESTAMP_LOOKAHEAD = 24
TIME_FORMAT = %Y/%m/%d %T %Z
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.1/Data/Configuretimestamprecognition"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.1/Data/Configuretimestamprecognition&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2016 00:39:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-configure-Splunk-to-extract-the-correct-year-from-the/m-p/214771#M62977</guid>
      <dc:creator>ryanoconnor</dc:creator>
      <dc:date>2016-06-21T00:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Splunk to extract the correct year from the date stamp in my sample log?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-configure-Splunk-to-extract-the-correct-year-from-the/m-p/214772#M62978</link>
      <description>&lt;P&gt;I added this to the props.conf stanza on the search head under system/local/ and it didn't help. I am still getting logs with wrong year in them. &lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2016 02:01:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-configure-Splunk-to-extract-the-correct-year-from-the/m-p/214772#M62978</guid>
      <dc:creator>daniel_augustyn</dc:creator>
      <dc:date>2016-06-22T02:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Splunk to extract the correct year from the date stamp in my sample log?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-configure-Splunk-to-extract-the-correct-year-from-the/m-p/214773#M62979</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/127577"&gt;@daniel_augustyn&lt;/a&gt; , theses setting need to be done where the parsing is happening, usually an indexer or a heavyweight forwarder. See this &lt;A href="http://wiki.splunk.com/Where_do_I_configure_my_Splunk_settings%3F" target="_blank"&gt;http://wiki.splunk.com/Where_do_I_configure_my_Splunk_settings%3F&lt;/A&gt; to learn more about this topic.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:59:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-configure-Splunk-to-extract-the-correct-year-from-the/m-p/214773#M62979</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2020-09-29T09:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Splunk to extract the correct year from the date stamp in my sample log?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-configure-Splunk-to-extract-the-correct-year-from-the/m-p/214774#M62980</link>
      <description>&lt;P&gt;Awesome, it totally fixed it. &lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2016 04:28:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-configure-Splunk-to-extract-the-correct-year-from-the/m-p/214774#M62980</guid>
      <dc:creator>daniel_augustyn</dc:creator>
      <dc:date>2016-06-22T04:28:17Z</dc:date>
    </item>
  </channel>
</rss>

