<?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: Add date to the timestamp of an event in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Add-date-to-the-timestamp-of-an-event/m-p/92200#M23781</link>
    <description>&lt;P&gt;If you use a filename that has a date in it, that date will be used (if there are no timestamps on your events).&lt;/P&gt;

&lt;P&gt;For example, if you rename "dispo.log.P" to "dispo.20101020.log.P" those events should be indexed as occurring on Oct 20, 2010.&lt;/P&gt;</description>
    <pubDate>Fri, 29 Apr 2011 18:24:33 GMT</pubDate>
    <dc:creator>carasso</dc:creator>
    <dc:date>2011-04-29T18:24:33Z</dc:date>
    <item>
      <title>Add date to the timestamp of an event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-date-to-the-timestamp-of-an-event/m-p/92199#M23780</link>
      <description>&lt;P&gt;I have some events, that are indexed with strange dates...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;17:56:58,442: htsxml2|c6d1956a-d611-47a5-97df-df0d31e1dbc7|32885|790667|483520|1|B|default|OK|65|3391
17:56:56,546: htsxml2|86bbb572-360d-4c12-8a18-0bd08ce0d7c0|17116|108051|130889|110|B|default|ERROR|-1|-1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is there a way I can force the date to apply to the events contained in an specific file?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2011 16:23:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-date-to-the-timestamp-of-an-event/m-p/92199#M23780</guid>
      <dc:creator>oscargarcia</dc:creator>
      <dc:date>2011-04-29T16:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Add date to the timestamp of an event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-date-to-the-timestamp-of-an-event/m-p/92200#M23781</link>
      <description>&lt;P&gt;If you use a filename that has a date in it, that date will be used (if there are no timestamps on your events).&lt;/P&gt;

&lt;P&gt;For example, if you rename "dispo.log.P" to "dispo.20101020.log.P" those events should be indexed as occurring on Oct 20, 2010.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2011 18:24:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-date-to-the-timestamp-of-an-event/m-p/92200#M23781</guid>
      <dc:creator>carasso</dc:creator>
      <dc:date>2011-04-29T18:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Add date to the timestamp of an event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-date-to-the-timestamp-of-an-event/m-p/92201#M23782</link>
      <description>&lt;P&gt;Hmm.  Rather than trying one really complex regex with lots of logic in it,  did you try having 3 dead-simple regexes,  with appropriate literals in it to match on like  |B|  vs  |P|  ?   Sourcetypes can easily have more than one regex in them and 3 super-simple ones might perform better than one crazy-complicated one.&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2011 16:42:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-date-to-the-timestamp-of-an-event/m-p/92201#M23782</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2011-05-16T16:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: Add date to the timestamp of an event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-date-to-the-timestamp-of-an-event/m-p/92202#M23783</link>
      <description>&lt;P&gt;As a supplement to both answers provided, the method to accomplish either is to use datetime.xml.  In the former, you can setup 3 different rules to use, in the latter, you can tell Splunk to get the date from the filename and the time from the event.&lt;/P&gt;</description>
      <pubDate>Sat, 02 May 2015 16:34:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-date-to-the-timestamp-of-an-event/m-p/92202#M23783</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-05-02T16:34:58Z</dc:date>
    </item>
  </channel>
</rss>

