<?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: Exclude Old data in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Exclude-Old-data/m-p/560490#M6489</link>
    <description>&lt;P&gt;Sorry, misunderstood the question.&amp;nbsp; Filtering at index time requires a transform that sends data to nullQueue.&amp;nbsp; The trick (for which I don't have an answer) is writing a regex that matches the current day without having to change it every day.&amp;nbsp; I'm not sure it's possible.&amp;nbsp; Perhaps Cribl can do it.&lt;/P&gt;</description>
    <pubDate>Thu, 22 Jul 2021 15:26:57 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2021-07-22T15:26:57Z</dc:date>
    <item>
      <title>Exclude Old data</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Exclude-Old-data/m-p/560209#M6459</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to exclude events that have an old timestamp in a url which look like this -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;timestamp&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt; &lt;STRONG&gt;&lt;SPAN class="t"&gt;1626739199.964&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;, "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;c-ip&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;178.245.92.14&lt;/SPAN&gt;&lt;SPAN&gt;", "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;time-to-first-byte&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt; &lt;SPAN class="t"&gt;0.002&lt;/SPAN&gt;&lt;SPAN&gt;, "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;sc-status&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt; &lt;SPAN class="t"&gt;404&lt;/SPAN&gt;&lt;SPAN&gt;, "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;sc-bytes&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt; &lt;SPAN class="t"&gt;467&lt;/SPAN&gt;&lt;SPAN&gt;, "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;cs-method&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;GET&lt;/SPAN&gt;&lt;SPAN&gt;", "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;cs-protocol&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;https&lt;/SPAN&gt;&lt;SPAN&gt;", "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;cs-host&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; "xxxxxxx&lt;/SPAN&gt;&lt;SPAN&gt;", "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;cs-uri-stem&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;/out/v1/bac5ea7d5e06476598d34ba48b3f1bd1/index_8_0.m3u8&lt;/SPAN&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;SPAN class="t"&gt;start=&lt;STRONG&gt;2021-07-16T16:40:07&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;+&lt;SPAN class="t"&gt;00:00&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;here timestamp and the start date are different.So is there any way to index the events have start date as current day.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 13:50:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Exclude-Old-data/m-p/560209#M6459</guid>
      <dc:creator>Sree</dc:creator>
      <dc:date>2021-07-20T13:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude Old data</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Exclude-Old-data/m-p/560240#M6463</link>
      <description>&lt;P&gt;Convert the start date to epoch form then filter on it.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;... | eval startDate=strptime(start,"%Y-%m-%dT%H:%M:%S%:z")
| where startDate&amp;gt;=relative_time(now(), "@d")&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 20 Jul 2021 17:37:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Exclude-Old-data/m-p/560240#M6463</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-07-20T17:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude Old data</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Exclude-Old-data/m-p/560481#M6486</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply but&amp;nbsp; your answer is for the splunk events that got already indexed.&lt;/P&gt;&lt;P&gt;I'm trying to filter the data at the sourcetype level before it gets indexed.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2021 14:26:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Exclude-Old-data/m-p/560481#M6486</guid>
      <dc:creator>Sree</dc:creator>
      <dc:date>2021-07-22T14:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude Old data</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Exclude-Old-data/m-p/560490#M6489</link>
      <description>&lt;P&gt;Sorry, misunderstood the question.&amp;nbsp; Filtering at index time requires a transform that sends data to nullQueue.&amp;nbsp; The trick (for which I don't have an answer) is writing a regex that matches the current day without having to change it every day.&amp;nbsp; I'm not sure it's possible.&amp;nbsp; Perhaps Cribl can do it.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2021 15:26:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Exclude-Old-data/m-p/560490#M6489</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-07-22T15:26:57Z</dc:date>
    </item>
  </channel>
</rss>

