<?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 How can I overwrite _time upon inserting data into Splunk? in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-can-I-overwrite-time-upon-inserting-data-into-Splunk/m-p/632895#M78643</link>
    <description>&lt;P&gt;I have data dated "2-14-2022".&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I insert the data into Splunk today, the _time becomes "3-2-2023".&lt;/P&gt;
&lt;P&gt;How can I overwrite _time to preserve the value as "2-14-2022" even though I insert the data at "3-2-2023", without creating an additional field to store the snapshot of datetime?&lt;/P&gt;
&lt;P&gt;The reason I would like to do that is because&lt;/P&gt;
&lt;P&gt;(1) I can leverage on the Splunk Time Range selector to limit my search query, instead of creating the time range selector myself.&lt;/P&gt;
&lt;P&gt;(2) I observed the query turnaround time is faster if we limit the data by&amp;nbsp;earliest=1677686400 latest=1677980130&amp;nbsp; (2.2 seconds query turnaround time) than using start_date &amp;amp; end_date that are associated to the custom input fields that I created (*194 seconds query turnaround time).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Mar 2023 15:26:44 GMT</pubDate>
    <dc:creator>sccheah82</dc:creator>
    <dc:date>2023-03-02T15:26:44Z</dc:date>
    <item>
      <title>How can I overwrite _time upon inserting data into Splunk?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-can-I-overwrite-time-upon-inserting-data-into-Splunk/m-p/632895#M78643</link>
      <description>&lt;P&gt;I have data dated "2-14-2022".&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I insert the data into Splunk today, the _time becomes "3-2-2023".&lt;/P&gt;
&lt;P&gt;How can I overwrite _time to preserve the value as "2-14-2022" even though I insert the data at "3-2-2023", without creating an additional field to store the snapshot of datetime?&lt;/P&gt;
&lt;P&gt;The reason I would like to do that is because&lt;/P&gt;
&lt;P&gt;(1) I can leverage on the Splunk Time Range selector to limit my search query, instead of creating the time range selector myself.&lt;/P&gt;
&lt;P&gt;(2) I observed the query turnaround time is faster if we limit the data by&amp;nbsp;earliest=1677686400 latest=1677980130&amp;nbsp; (2.2 seconds query turnaround time) than using start_date &amp;amp; end_date that are associated to the custom input fields that I created (*194 seconds query turnaround time).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 15:26:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-can-I-overwrite-time-upon-inserting-data-into-Splunk/m-p/632895#M78643</guid>
      <dc:creator>sccheah82</dc:creator>
      <dc:date>2023-03-02T15:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: How can I overwrite _time upon inserting data into Splunk?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-can-I-overwrite-time-upon-inserting-data-into-Splunk/m-p/634169#M78716</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/251839"&gt;@sccheah82&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If you're uploading data through Splunk Web, you can adjust line breaking and timestamp extraction on the Set Source Type page.&lt;/P&gt;&lt;PRE&gt;2-14-2022 Example one.&lt;BR /&gt; 2-14-2022 Example two with leading space.&lt;BR /&gt;(empty line)&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tscroggins_0-1678650711585.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/24286iA7820DBE44EBE2EC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tscroggins_0-1678650711585.png" alt="tscroggins_0-1678650711585.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Note that very old events (&amp;gt; 900 days by default but perhaps earlier in your environment) may be quarantined (written to a separate bucket), and depending on your environment's retention settings, may not remain online for as long as you'd hoped. Check with your Splunk administrator for your environment's specific characteristics.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Mar 2023 20:02:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-can-I-overwrite-time-upon-inserting-data-into-Splunk/m-p/634169#M78716</guid>
      <dc:creator>tscroggins</dc:creator>
      <dc:date>2023-03-12T20:02:44Z</dc:date>
    </item>
  </channel>
</rss>

