<?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: filtering errors based on two timestamps in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/filtering-errors-based-on-two-timestamps/m-p/111573#M183658</link>
    <description>&lt;P&gt;Since your question does not have any specific log event example use the following after your splunk query construct:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;include your splunk query construct that identifies your deploy error events here| eventstats latest(_time) as ltime by host | where _time=ltime
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The result set should be the last event "deployment error" found in each host.  &lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Lp&lt;/P&gt;</description>
    <pubDate>Wed, 23 Oct 2013 13:52:52 GMT</pubDate>
    <dc:creator>lpolo</dc:creator>
    <dc:date>2013-10-23T13:52:52Z</dc:date>
    <item>
      <title>filtering errors based on two timestamps</title>
      <link>https://community.splunk.com/t5/Splunk-Search/filtering-errors-based-on-two-timestamps/m-p/111572#M183657</link>
      <description>&lt;P&gt;I have a site and errors on that site are being recorded in splunk.&lt;BR /&gt;
I basically need to filter out those error which occur due to a particular deployment for that sourcetype.&lt;BR /&gt;
suppose before 10 days of deployment Errors(Exceptions) were: A,B, C and D&lt;BR /&gt;
after 2 days of deployment errors were: A, B,C, D and E&lt;/P&gt;

&lt;P&gt;so need to prepare a query which gets the result as E i.e, the new errors that are occurring after the recent deployment.&lt;/P&gt;

&lt;P&gt;we need to compare the Message's first 100 characters of today's error with that of previous days. And if the message has occured before also, then we will ignore that message in result. The result should include only fresh messages after a particular deployment. &lt;BR /&gt;
also the only characteristic feature of the error is 'Message' which has value like: 'Advisory Code: 1315 was not found in the CMS....' we need to compare first 100 letters approx.&lt;/P&gt;

&lt;P&gt;please help me out.... &lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2013 12:48:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/filtering-errors-based-on-two-timestamps/m-p/111572#M183657</guid>
      <dc:creator>Nisha18789</dc:creator>
      <dc:date>2013-10-23T12:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: filtering errors based on two timestamps</title>
      <link>https://community.splunk.com/t5/Splunk-Search/filtering-errors-based-on-two-timestamps/m-p/111573#M183658</link>
      <description>&lt;P&gt;Since your question does not have any specific log event example use the following after your splunk query construct:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;include your splunk query construct that identifies your deploy error events here| eventstats latest(_time) as ltime by host | where _time=ltime
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The result set should be the last event "deployment error" found in each host.  &lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Lp&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2013 13:52:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/filtering-errors-based-on-two-timestamps/m-p/111573#M183658</guid>
      <dc:creator>lpolo</dc:creator>
      <dc:date>2013-10-23T13:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: filtering errors based on two timestamps</title>
      <link>https://community.splunk.com/t5/Splunk-Search/filtering-errors-based-on-two-timestamps/m-p/111574#M183659</link>
      <description>&lt;P&gt;I do not know how to make that query construct that identifies deploy error events. That is what am asking.&lt;BR /&gt;
I am posting event log as an answer as it will not be visible clearly here in comment.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2013 04:34:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/filtering-errors-based-on-two-timestamps/m-p/111574#M183659</guid>
      <dc:creator>Nisha18789</dc:creator>
      <dc:date>2013-10-24T04:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: filtering errors based on two timestamps</title>
      <link>https://community.splunk.com/t5/Splunk-Search/filtering-errors-based-on-two-timestamps/m-p/111575#M183660</link>
      <description>&lt;P&gt;I am posting a sample event log&lt;/P&gt;

&lt;P&gt;20131024002915.000000&lt;BR /&gt;&lt;BR /&gt;
Category=0&lt;BR /&gt;&lt;BR /&gt;
CategoryString=NULL&lt;BR /&gt;&lt;BR /&gt;
EventCode=0&lt;BR /&gt;&lt;BR /&gt;
EventIdentifier=0&lt;BR /&gt;&lt;BR /&gt;
EventType=3&lt;BR /&gt;&lt;BR /&gt;
Logfile="some value"&lt;BR /&gt;&lt;BR /&gt;
RecordNumber=5866554&lt;BR /&gt;&lt;BR /&gt;
SourceName="some value"&lt;BR /&gt;&lt;BR /&gt;
TimeGenerated=20131024042915.000000-000&lt;BR /&gt;&lt;BR /&gt;
Type=Information&lt;BR /&gt;
User=NULL&lt;BR /&gt;&lt;BR /&gt;
ComputerName="some value"&lt;BR /&gt;&lt;BR /&gt;
wmi_type="Application Name"&lt;BR /&gt;&lt;BR /&gt;
Message=Advisory Code: 1249 was not found in the CMS. Description:We are not able to find any rates that match the qualifiers you specified. Please modify your search criteria, or select from the alternates.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2013 05:26:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/filtering-errors-based-on-two-timestamps/m-p/111575#M183660</guid>
      <dc:creator>Nisha18789</dc:creator>
      <dc:date>2013-10-24T05:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: filtering errors based on two timestamps</title>
      <link>https://community.splunk.com/t5/Splunk-Search/filtering-errors-based-on-two-timestamps/m-p/111576#M183661</link>
      <description>&lt;P&gt;To learn about the Splunk query language you can start with this online book:&lt;BR /&gt;
&lt;A href="http://www.splunk.com/goto/book"&gt;http://www.splunk.com/goto/book&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You may try this:&lt;BR /&gt;
Assuming that the event sample is indexed in the main index:&lt;/P&gt;

&lt;P&gt;index=main EventCode=0 EventIdentifier=0 EventType=3 SourceName="some value"|eventstats latest(_time) as ltime by host | where _time=ltime|table host TimeGenerated RecordNumber ComputerName Message&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2013 11:54:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/filtering-errors-based-on-two-timestamps/m-p/111576#M183661</guid>
      <dc:creator>lpolo</dc:creator>
      <dc:date>2013-10-24T11:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: filtering errors based on two timestamps</title>
      <link>https://community.splunk.com/t5/Splunk-Search/filtering-errors-based-on-two-timestamps/m-p/111577#M183662</link>
      <description>&lt;P&gt;I used the query but its not giving me the required output since I want the particular deployment error ie all other errors which were common in previous 30 days n after deployment should be filtered out. Please help...&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2013 12:17:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/filtering-errors-based-on-two-timestamps/m-p/111577#M183662</guid>
      <dc:creator>Nisha18789</dc:creator>
      <dc:date>2013-10-24T12:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: filtering errors based on two timestamps</title>
      <link>https://community.splunk.com/t5/Splunk-Search/filtering-errors-based-on-two-timestamps/m-p/111578#M183663</link>
      <description>&lt;P&gt;Could you please tell me how to find the difference in two searches which will solve my problem as&lt;BR /&gt;
(search for errors during past 2 days)- (search for errors during past 30 days)= required result&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2013 12:29:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/filtering-errors-based-on-two-timestamps/m-p/111578#M183663</guid>
      <dc:creator>Nisha18789</dc:creator>
      <dc:date>2013-10-24T12:29:44Z</dc:date>
    </item>
  </channel>
</rss>

