<?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 Overriding _time in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Overriding-time/m-p/82970#M181961</link>
    <description>&lt;P&gt;Greetings everyone. Is there any way to modify _time's value for the sake of a single search? One of our sources has the time set 2 hours behind where it should be. We have to present data tomorrow, and it will take at least a week to re-index everything. Any ideas would be appreciated.&lt;/P&gt;</description>
    <pubDate>Wed, 28 Sep 2011 13:21:42 GMT</pubDate>
    <dc:creator>msarro</dc:creator>
    <dc:date>2011-09-28T13:21:42Z</dc:date>
    <item>
      <title>Overriding _time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Overriding-time/m-p/82970#M181961</link>
      <description>&lt;P&gt;Greetings everyone. Is there any way to modify _time's value for the sake of a single search? One of our sources has the time set 2 hours behind where it should be. We have to present data tomorrow, and it will take at least a week to re-index everything. Any ideas would be appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2011 13:21:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Overriding-time/m-p/82970#M181961</guid>
      <dc:creator>msarro</dc:creator>
      <dc:date>2011-09-28T13:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Overriding _time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Overriding-time/m-p/82971#M181962</link>
      <description>&lt;P&gt;you can perform a regex on the field where the time is and search based on that time. an example....&lt;/P&gt;

&lt;P&gt;search &lt;SEARCH term=""&gt; rex field=_raw "(?&lt;NEW_DATE&gt;\d{4}\/\d{2}\/\d{2}) (?&lt;NEW_TIME&gt;\d{2}:\d{2}:\d{2})" | sort by new_date,new_time&lt;/NEW_TIME&gt;&lt;/NEW_DATE&gt;&lt;/SEARCH&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:55:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Overriding-time/m-p/82971#M181962</guid>
      <dc:creator>vlapeintuit</dc:creator>
      <dc:date>2020-09-28T09:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Overriding _time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Overriding-time/m-p/82972#M181963</link>
      <description>&lt;P&gt;You can munge time with &lt;CODE&gt;eval&lt;/CODE&gt;.  Something like this should work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval _time=if(source=="/some/bad/source",_time+7200,_time)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Things can get slightly wonky doing stuff like this though.  You may need to resort by time (&lt;CODE&gt;| sort -_time&lt;/CODE&gt;), and because this is a post-search processing of the data your search window will need to be large enough to be inclusive of the whole time window.&lt;/P&gt;

&lt;P&gt;I would definitely plan on a reindex to fix the fouled data.  But this might get you through your demo tomorrow.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2011 18:03:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Overriding-time/m-p/82972#M181963</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2011-09-28T18:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: Overriding _time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Overriding-time/m-p/82973#M181964</link>
      <description>&lt;P&gt;Hi, I have been struggling with this for a long time. Thanks a lot. I am trying to display events from the past in the same graph as current events in a graph (Today vs last week).&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2012 08:50:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Overriding-time/m-p/82973#M181964</guid>
      <dc:creator>chris</dc:creator>
      <dc:date>2012-02-08T08:50:17Z</dc:date>
    </item>
  </channel>
</rss>

