<?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: Find new errors in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Find-new-errors/m-p/79623#M16339</link>
    <description>&lt;P&gt;The dedup will remove all the events except the first one, so in your case you should remove it.&lt;/P&gt;

&lt;P&gt;what about the list of errors per day &lt;BR /&gt;
&lt;CODE&gt;mysearch | timechart span=1d count by Message&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Or simply a statistical count of errors with the detail of the first and last occurrence&lt;BR /&gt;
&lt;CODE&gt;mysearch ealiest=-1d@d | stats last(_time) as oldesttime last(_time) as recenttime count by Message | convert ctime(oldesttime) | convert ctime(recenttime)&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Jan 2013 08:41:09 GMT</pubDate>
    <dc:creator>yannK</dc:creator>
    <dc:date>2013-01-07T08:41:09Z</dc:date>
    <item>
      <title>Find new errors</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Find-new-errors/m-p/79621#M16337</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I want to see the new errors after a date, per example "new errors after 1 day ago". I've created this request, which works fine for find the first occurrence of each error. But now I want filter the result of my request to find the new errors for this day. How can I do that ?&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;("SourceName=Application Popup" OR&lt;BR /&gt;
Type=Critical OR Type=Warning)&lt;BR /&gt;
host="xxxx" | reverse | dedup Message | { I want filter date here }&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Thanks for your help !&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2013 07:47:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Find-new-errors/m-p/79621#M16337</guid>
      <dc:creator>splunk13</dc:creator>
      <dc:date>2013-01-07T07:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: Find new errors</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Find-new-errors/m-p/79622#M16338</link>
      <description>&lt;P&gt;if you mean "new errors today" and you can accept filter date at the beginning of the search command, you may add "earliest=@d" for today or "earliest=-2d@d" for today and yesterday, into the first part of search command.&lt;BR /&gt;
Like this:&lt;BR /&gt;
("SourceName=Application Popup" OR&lt;BR /&gt;
Type=Critical OR Type=Warning)&lt;BR /&gt;
host="xxxx"  &lt;STRONG&gt;earliest=@d&lt;/STRONG&gt; | reverse | dedup Message&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2013 08:32:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Find-new-errors/m-p/79622#M16338</guid>
      <dc:creator>sonicant</dc:creator>
      <dc:date>2013-01-07T08:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: Find new errors</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Find-new-errors/m-p/79623#M16339</link>
      <description>&lt;P&gt;The dedup will remove all the events except the first one, so in your case you should remove it.&lt;/P&gt;

&lt;P&gt;what about the list of errors per day &lt;BR /&gt;
&lt;CODE&gt;mysearch | timechart span=1d count by Message&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Or simply a statistical count of errors with the detail of the first and last occurrence&lt;BR /&gt;
&lt;CODE&gt;mysearch ealiest=-1d@d | stats last(_time) as oldesttime last(_time) as recenttime count by Message | convert ctime(oldesttime) | convert ctime(recenttime)&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2013 08:41:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Find-new-errors/m-p/79623#M16339</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2013-01-07T08:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: Find new errors</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Find-new-errors/m-p/79624#M16340</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
Thank you for your fast response.&lt;BR /&gt;
I mean the today's errors who have never appeared before.&lt;BR /&gt;
So I just need filter the result of my request to show only errors who appeared today.&lt;/P&gt;

&lt;P&gt;Like:&lt;BR /&gt;
("SourceName=Application Popup" OR Type=Critical OR Type=Warning) host="xxxx"  | reverse | dedup Message | earliest=-1d@d&lt;/P&gt;

&lt;P&gt;But it doesn't work.&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2013 08:43:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Find-new-errors/m-p/79624#M16340</guid>
      <dc:creator>splunk13</dc:creator>
      <dc:date>2013-01-07T08:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: Find new errors</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Find-new-errors/m-p/79625#M16341</link>
      <description>&lt;P&gt;Hi splunk13&lt;/P&gt;

&lt;P&gt;You may not use "earliest=" after the pipe, please add it into the first part of your search, like this:&lt;BR /&gt;
("SourceName=Application Popup" OR Type=Critical OR Type=Warning) host="xxxx"  earliest=@d | reverse | dedup Message&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2013 08:55:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Find-new-errors/m-p/79625#M16341</guid>
      <dc:creator>sonicant</dc:creator>
      <dc:date>2013-01-07T08:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: Find new errors</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Find-new-errors/m-p/79626#M16342</link>
      <description>&lt;P&gt;Hi sonicant,&lt;/P&gt;

&lt;P&gt;Yes but the result of you request isn't the objective.&lt;BR /&gt;
I want see the today's &lt;STRONG&gt;errors who have never appeared before today&lt;/STRONG&gt;. And your request show all distinct errors for today.&lt;/P&gt;

&lt;P&gt;Thank you for your help and sorry if I'm not very clear.&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2013 09:11:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Find-new-errors/m-p/79626#M16342</guid>
      <dc:creator>splunk13</dc:creator>
      <dc:date>2013-01-07T09:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Find new errors</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Find-new-errors/m-p/79627#M16343</link>
      <description>&lt;P&gt;You can filter events by time at a later point in your query like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | where _time &amp;gt;= relative_time(time(), "@d")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will only keep events from today.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2013 09:25:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Find-new-errors/m-p/79627#M16343</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-01-07T09:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: Find new errors</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Find-new-errors/m-p/79628#M16344</link>
      <description>&lt;P&gt;Note, -2d@d refers to today, yesterday and the day before yesterday. You'd get today and yesterday with -d@d.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2013 09:26:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Find-new-errors/m-p/79628#M16344</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-01-07T09:26:57Z</dc:date>
    </item>
  </channel>
</rss>

