<?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: How to search for hosts with an issue where a type of event was not followed by another type within an hour? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-hosts-with-an-issue-where-a-type-of-event-was/m-p/132966#M36306</link>
    <description>&lt;P&gt;Would it work?  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your search here&amp;gt; | transaction maxspan=70m ComputerName startswith="ActionTaken=None" keepevicted=f | search NOT Blocked NOT removed NOT quarantined | table ComputerName, VirusName
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 24 Nov 2014 11:46:17 GMT</pubDate>
    <dc:creator>felipetesta</dc:creator>
    <dc:date>2014-11-24T11:46:17Z</dc:date>
    <item>
      <title>How to search for hosts with an issue where a type of event was not followed by another type within an hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-hosts-with-an-issue-where-a-type-of-event-was/m-p/132965#M36305</link>
      <description>&lt;P&gt;Need to find hosts where an event of a type was not followed by event of another type within an hour &lt;/P&gt;

&lt;P&gt;I need to find hosts where virus infection was detected and it failed to perform any action, where "None" is not followed up by of the other events  " Blocked OR removed OR quarantined" in 1 hour&lt;/P&gt;

&lt;P&gt;Fields available are &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ComputerName=
VirusName= 
Action Taken=
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Sample log&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;10/11/2014 20:01 : ComputerName=test1 VirusName=conficker  ActionTaken=None 
10/11/2014 20:02 "ComputerName=test1 VirusName=conficker  ActionTaken=blocked 
10/11/2014 22:01 : ComputerName=test20 VirusName=conficker  ActionTaken=None
10/11/2014 20:01 : ComputerName=test30 VirusName=conficker  ActionTaken=None 
10/11/2014 20:02 "ComputerName=test30 VirusName=conficker  ActionTaken=removed
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;As you can seen above, no action was taken by antivirus on Computer test20. I need to write a search query to create a report or dashboard to find any such machine.&lt;/P&gt;

&lt;P&gt;Any pointers in the right direction would be appreciated &lt;/P&gt;</description>
      <pubDate>Mon, 24 Nov 2014 11:17:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-hosts-with-an-issue-where-a-type-of-event-was/m-p/132965#M36305</guid>
      <dc:creator>shellnight</dc:creator>
      <dc:date>2014-11-24T11:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for hosts with an issue where a type of event was not followed by another type within an hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-hosts-with-an-issue-where-a-type-of-event-was/m-p/132966#M36306</link>
      <description>&lt;P&gt;Would it work?  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your search here&amp;gt; | transaction maxspan=70m ComputerName startswith="ActionTaken=None" keepevicted=f | search NOT Blocked NOT removed NOT quarantined | table ComputerName, VirusName
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 24 Nov 2014 11:46:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-hosts-with-an-issue-where-a-type-of-event-was/m-p/132966#M36306</guid>
      <dc:creator>felipetesta</dc:creator>
      <dc:date>2014-11-24T11:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for hosts with an issue where a type of event was not followed by another type within an hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-hosts-with-an-issue-where-a-type-of-event-was/m-p/132967#M36307</link>
      <description>&lt;P&gt;What Antivirus software are you using?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Nov 2014 12:37:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-hosts-with-an-issue-where-a-type-of-event-was/m-p/132967#M36307</guid>
      <dc:creator>hagjos43</dc:creator>
      <dc:date>2014-11-24T12:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for hosts with an issue where a type of event was not followed by another type within an hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-hosts-with-an-issue-where-a-type-of-event-was/m-p/132968#M36308</link>
      <description>&lt;P&gt;The search ran for logs of a 1 month period  with  no errors but failed to retrieve  any results &lt;/P&gt;

&lt;P&gt;One machine had 3 occurrences of action taken= none and wasnt followed by any removal actions&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;10/11/2014 20:01 : ComputerName=test1 VirusName=conficker ActionTaken=None 
10/11/2014 20:02 "ComputerName=test1 VirusName=conficker ActionTaken=None 
10/11/2014 20:03 : ComputerName=test1 VirusName=conficker ActionTaken=None
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 24 Nov 2014 13:34:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-hosts-with-an-issue-where-a-type-of-event-was/m-p/132968#M36308</guid>
      <dc:creator>shellnight</dc:creator>
      <dc:date>2014-11-24T13:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for hosts with an issue where a type of event was not followed by another type within an hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-hosts-with-an-issue-where-a-type-of-event-was/m-p/132969#M36309</link>
      <description>&lt;P&gt;please can someone help&lt;/P&gt;</description>
      <pubDate>Mon, 24 Nov 2014 15:36:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-hosts-with-an-issue-where-a-type-of-event-was/m-p/132969#M36309</guid>
      <dc:creator>shellnight</dc:creator>
      <dc:date>2014-11-24T15:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for hosts with an issue where a type of event was not followed by another type within an hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-hosts-with-an-issue-where-a-type-of-event-was/m-p/132970#M36310</link>
      <description>&lt;P&gt;Give this a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search | transaction maxspan=60m startswith="ActionTaken=None" keeporphans=t  | where mvcount(ActionTaken) =1 AND mvindex(ActionTaken,0)="None"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 24 Nov 2014 17:36:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-hosts-with-an-issue-where-a-type-of-event-was/m-p/132970#M36310</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-11-24T17:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for hosts with an issue where a type of event was not followed by another type within an hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-hosts-with-an-issue-where-a-type-of-event-was/m-p/132971#M36311</link>
      <description>&lt;P&gt;thank you very much  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;

&lt;P&gt;It works fine&lt;/P&gt;</description>
      <pubDate>Mon, 24 Nov 2014 19:38:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-hosts-with-an-issue-where-a-type-of-event-was/m-p/132971#M36311</guid>
      <dc:creator>shellnight</dc:creator>
      <dc:date>2014-11-24T19:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for hosts with an issue where a type of event was not followed by another type within an hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-hosts-with-an-issue-where-a-type-of-event-was/m-p/132972#M36312</link>
      <description>&lt;P&gt;Hello somesoni2 can you update the query to  exclude the events where  actiontaken is either partly removed or Unknown so that they show up in search&lt;/P&gt;

&lt;P&gt;your base search | transaction maxspan=60m startswith="ActionTaken=None" keeporphans=t  | where mvcount(ActionTaken) =1 AND mvindex(ActionTaken,0)="None"&lt;/P&gt;</description>
      <pubDate>Fri, 28 Nov 2014 10:11:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-hosts-with-an-issue-where-a-type-of-event-was/m-p/132972#M36312</guid>
      <dc:creator>shellnight</dc:creator>
      <dc:date>2014-11-28T10:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for hosts with an issue where a type of event was not followed by another type within an hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-hosts-with-an-issue-where-a-type-of-event-was/m-p/132973#M36313</link>
      <description>&lt;P&gt;Hello please can you provide update &lt;/P&gt;</description>
      <pubDate>Fri, 28 Nov 2014 15:43:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-hosts-with-an-issue-where-a-type-of-event-was/m-p/132973#M36313</guid>
      <dc:creator>shellnight</dc:creator>
      <dc:date>2014-11-28T15:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for hosts with an issue where a type of event was not followed by another type within an hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-hosts-with-an-issue-where-a-type-of-event-was/m-p/132974#M36314</link>
      <description>&lt;P&gt;I hope you're saying you want to INCLUDE events where final "Action Taken" is "Partly Remove" OR "Unkonwn", so try this one.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search | transaction maxspan=60m startswith="ActionTaken=None" keeporphans=t  | where isnull(mvfind(ActionTaken,"removed")) OR isnull(mvfind(ActionTaken,"blocked"))
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Basically add all the ActionTaken your want to exclude in the where clause&lt;/P&gt;</description>
      <pubDate>Fri, 28 Nov 2014 20:47:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-hosts-with-an-issue-where-a-type-of-event-was/m-p/132974#M36314</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-11-28T20:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for hosts with an issue where a type of event was not followed by another type within an hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-hosts-with-an-issue-where-a-type-of-event-was/m-p/132975#M36315</link>
      <description>&lt;P&gt;Hi @shellnight&lt;/P&gt;

&lt;P&gt;@somesoni2 responded to the thread above with an update. Can you respond to that as a comment to confirm whether or not that updated search solves your requirement?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Dec 2014 01:37:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-hosts-with-an-issue-where-a-type-of-event-was/m-p/132975#M36315</guid>
      <dc:creator>ppablo</dc:creator>
      <dc:date>2014-12-03T01:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for hosts with an issue where a type of event was not followed by another type within an hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-hosts-with-an-issue-where-a-type-of-event-was/m-p/132976#M36316</link>
      <description>&lt;P&gt;Error in 'where' command: The arguments to the 'isnull' function are invalid.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Dec 2014 13:33:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-hosts-with-an-issue-where-a-type-of-event-was/m-p/132976#M36316</guid>
      <dc:creator>shellnight</dc:creator>
      <dc:date>2014-12-10T13:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for hosts with an issue where a type of event was not followed by another type within an hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-hosts-with-an-issue-where-a-type-of-event-was/m-p/132977#M36317</link>
      <description>&lt;P&gt;Hello there&lt;/P&gt;

&lt;P&gt;can you  please check if there is something wrong in the syntax &lt;/P&gt;</description>
      <pubDate>Thu, 11 Dec 2014 12:54:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-hosts-with-an-issue-where-a-type-of-event-was/m-p/132977#M36317</guid>
      <dc:creator>shellnight</dc:creator>
      <dc:date>2014-12-11T12:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for hosts with an issue where a type of event was not followed by another type within an hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-hosts-with-an-issue-where-a-type-of-event-was/m-p/132978#M36318</link>
      <description>&lt;P&gt;I updated the query. Please check back.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Dec 2014 18:17:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-hosts-with-an-issue-where-a-type-of-event-was/m-p/132978#M36318</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-12-17T18:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for hosts with an issue where a type of event was not followed by another type within an hour?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-hosts-with-an-issue-where-a-type-of-event-was/m-p/132979#M36319</link>
      <description>&lt;P&gt;Hi @shellnight&lt;/P&gt;

&lt;P&gt;@somesoni2 updated the query. can you confirm whether or not this worked for you? &lt;/P&gt;</description>
      <pubDate>Tue, 30 Dec 2014 07:42:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-for-hosts-with-an-issue-where-a-type-of-event-was/m-p/132979#M36319</guid>
      <dc:creator>ppablo</dc:creator>
      <dc:date>2014-12-30T07:42:00Z</dc:date>
    </item>
  </channel>
</rss>

