<?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: query on splunk for new error(exeption on server) in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/query-on-splunk-for-new-error-exeption-on-server/m-p/219265#M176590</link>
    <description>&lt;P&gt;@sagineshmk, did this answer your question? If so, you can "accept" this or provide clarifying information to continue the discussion.&lt;/P&gt;</description>
    <pubDate>Wed, 05 Oct 2016 14:43:04 GMT</pubDate>
    <dc:creator>sloshburch</dc:creator>
    <dc:date>2016-10-05T14:43:04Z</dc:date>
    <item>
      <title>query on splunk for new error(exeption on server)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/query-on-splunk-for-new-error-exeption-on-server/m-p/219263#M176588</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Requires a query that search for non-repetitive error/exception on server ie it will show only new error that has not occured more than 30 days.&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
SAGINESH&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 08:00:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/query-on-splunk-for-new-error-exeption-on-server/m-p/219263#M176588</guid>
      <dc:creator>sagineshmk</dc:creator>
      <dc:date>2016-10-03T08:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: query on splunk for new error(exeption on server)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/query-on-splunk-for-new-error-exeption-on-server/m-p/219264#M176589</link>
      <description>&lt;P&gt;There's a lot of different ways to approach this - are you planning on creating an alert from a scheduled search running every 15m?  Do you want to just create a dashboard with uncommon or recent errors?  What do you want to tell the consumer of the search result about the error - what host it came from?  The error itself?  Any other info?&lt;/P&gt;

&lt;P&gt;For now we can choose a simple case.  Let's assume your data's sourcetype is sagineshmk_logs, and the error is in a field named error_name.  You could do a search like the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=sagineshmk_logs earliest=-30d@d | stats count as error_count, max(_time) as _time by error_name | where error_count=1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For a production environment, though, I might not want to run the above search every 15m and constantly look over 30 days of data.  In that case I may split the search into two separate pieces - one search to compile a list of unique errors in the last 30 days (e.g. run that daily), then a second search that only looks at the past 15 minute's worth of errors and compares it to my daily unique error list.  &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:16:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/query-on-splunk-for-new-error-exeption-on-server/m-p/219264#M176589</guid>
      <dc:creator>jhupka</dc:creator>
      <dc:date>2020-09-29T11:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: query on splunk for new error(exeption on server)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/query-on-splunk-for-new-error-exeption-on-server/m-p/219265#M176590</link>
      <description>&lt;P&gt;@sagineshmk, did this answer your question? If so, you can "accept" this or provide clarifying information to continue the discussion.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2016 14:43:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/query-on-splunk-for-new-error-exeption-on-server/m-p/219265#M176590</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2016-10-05T14:43:04Z</dc:date>
    </item>
  </channel>
</rss>

