<?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 can I find computers that have been infected for three consecutive days? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-find-computers-that-have-been-infected-for-three/m-p/341832#M174893</link>
    <description>&lt;P&gt;Thank you for your advice!&lt;BR /&gt;
I can get DATA what I want.&lt;/P&gt;

&lt;P&gt;Here is my full query.&lt;/P&gt;

&lt;P&gt;index=AV sourcetype=virusalert earliest=-4d@d latest=-1d@d&lt;BR /&gt;
| eval REG_DATE=strftime(_time, "%Y-%m-%d")&lt;BR /&gt;
| stats dc(date_mday) as count, max(REG_DATE) as RECENT_ATTACK_TIME by CLIENTIP, VIRUSNAME&lt;BR /&gt;
| where count &amp;gt;2&lt;BR /&gt;
| table RECENT_ATTACK_TIME, CLIENTIP, VIRUSNAME&lt;/P&gt;

&lt;P&gt;Thanks again.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 13:46:25 GMT</pubDate>
    <dc:creator>superhm</dc:creator>
    <dc:date>2020-09-29T13:46:25Z</dc:date>
    <item>
      <title>How can I find computers that have been infected for three consecutive days?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-find-computers-that-have-been-infected-for-three/m-p/341830#M174891</link>
      <description>&lt;P&gt;I want to find the host IPs for three consecutive days of antivirus detection.&lt;BR /&gt;
Please help me.&lt;BR /&gt;
ex)&lt;BR /&gt;
- sourcetype: virusalert&lt;/P&gt;

&lt;P&gt;The names of the fields&lt;BR /&gt;
- CLIENTIP&lt;BR /&gt;
- VIRUSNAME&lt;BR /&gt;
- TIME&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 05:02:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-find-computers-that-have-been-infected-for-three/m-p/341830#M174891</guid>
      <dc:creator>superhm</dc:creator>
      <dc:date>2017-04-24T05:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: How can I find computers that have been infected for three consecutive days?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-find-computers-that-have-been-infected-for-three/m-p/341831#M174892</link>
      <description>&lt;P&gt;You can run a search for 3 days and do a distinct count based on date_mday(day of the month) -&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=virusalert | stats dc(date_mday) as count,max(TIME) as RECENT_ATTACK_TIME by CLIENTIP,VIRUSNAME | where count &amp;gt; 2 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 24 Apr 2017 05:07:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-find-computers-that-have-been-infected-for-three/m-p/341831#M174892</guid>
      <dc:creator>dineshraj9</dc:creator>
      <dc:date>2017-04-24T05:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: How can I find computers that have been infected for three consecutive days?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-find-computers-that-have-been-infected-for-three/m-p/341832#M174893</link>
      <description>&lt;P&gt;Thank you for your advice!&lt;BR /&gt;
I can get DATA what I want.&lt;/P&gt;

&lt;P&gt;Here is my full query.&lt;/P&gt;

&lt;P&gt;index=AV sourcetype=virusalert earliest=-4d@d latest=-1d@d&lt;BR /&gt;
| eval REG_DATE=strftime(_time, "%Y-%m-%d")&lt;BR /&gt;
| stats dc(date_mday) as count, max(REG_DATE) as RECENT_ATTACK_TIME by CLIENTIP, VIRUSNAME&lt;BR /&gt;
| where count &amp;gt;2&lt;BR /&gt;
| table RECENT_ATTACK_TIME, CLIENTIP, VIRUSNAME&lt;/P&gt;

&lt;P&gt;Thanks again.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:46:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-find-computers-that-have-been-infected-for-three/m-p/341832#M174893</guid>
      <dc:creator>superhm</dc:creator>
      <dc:date>2020-09-29T13:46:25Z</dc:date>
    </item>
  </channel>
</rss>

