<?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: Extract Timestamp from logs that don't contain any Year reference in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Extract-Timestamp-from-logs-that-don-t-contain-any-Year/m-p/67147#M13480</link>
    <description>&lt;P&gt;My understanding is that you can either: Clean your index, edit the timestamps in the logs manually to include the year and then have these logs indexed in order to see the year in the timestamp as the value for the date_year field OR if this is not efficient then maybe you can achieve this in props.conf via a field extraction&lt;/P&gt;</description>
    <pubDate>Tue, 29 Mar 2011 17:05:42 GMT</pubDate>
    <dc:creator>Ant1D</dc:creator>
    <dc:date>2011-03-29T17:05:42Z</dc:date>
    <item>
      <title>Extract Timestamp from logs that don't contain any Year reference</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Extract-Timestamp-from-logs-that-don-t-contain-any-Year/m-p/67144#M13477</link>
      <description>&lt;P&gt;I need to extract a timestamp from log files looking like that :&lt;/P&gt;

&lt;P&gt;Feb 16 23:58:44 ...&lt;/P&gt;

&lt;P&gt;As you can see, there is no reference to the year when the log was generated, so what I want to do is to extract day, month and hour reference and then mix it with current year from the splunk instance (or from the file last modification date).&lt;/P&gt;

&lt;P&gt;Do you see a simple way to do this ?&lt;/P&gt;

&lt;P&gt;Ludovic.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2011 20:33:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Extract-Timestamp-from-logs-that-don-t-contain-any-Year/m-p/67144#M13477</guid>
      <dc:creator>lmeur</dc:creator>
      <dc:date>2011-03-24T20:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Timestamp from logs that don't contain any Year reference</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Extract-Timestamp-from-logs-that-don-t-contain-any-Year/m-p/67145#M13478</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;When you run a search on these logs in your Splunk instance, you will see fields on the left-hand side that you can pick from. Select the last option that says All (&lt;EM&gt;number&lt;/EM&gt;) fields. There should be a field named &lt;STRONG&gt;date_year&lt;/STRONG&gt; that you can use.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2011 21:48:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Extract-Timestamp-from-logs-that-don-t-contain-any-Year/m-p/67145#M13478</guid>
      <dc:creator>Ant1D</dc:creator>
      <dc:date>2011-03-24T21:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Timestamp from logs that don't contain any Year reference</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Extract-Timestamp-from-logs-that-don-t-contain-any-Year/m-p/67146#M13479</link>
      <description>&lt;P&gt;date_year allow me to get date field on search results but what I'm looking for is to change year on date_year field before indexing logs (during logs fields extraction)&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:26:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Extract-Timestamp-from-logs-that-don-t-contain-any-Year/m-p/67146#M13479</guid>
      <dc:creator>lmeur</dc:creator>
      <dc:date>2020-09-28T09:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Timestamp from logs that don't contain any Year reference</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Extract-Timestamp-from-logs-that-don-t-contain-any-Year/m-p/67147#M13480</link>
      <description>&lt;P&gt;My understanding is that you can either: Clean your index, edit the timestamps in the logs manually to include the year and then have these logs indexed in order to see the year in the timestamp as the value for the date_year field OR if this is not efficient then maybe you can achieve this in props.conf via a field extraction&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2011 17:05:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Extract-Timestamp-from-logs-that-don-t-contain-any-Year/m-p/67147#M13480</guid>
      <dc:creator>Ant1D</dc:creator>
      <dc:date>2011-03-29T17:05:42Z</dc:date>
    </item>
  </channel>
</rss>

