<?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 Splunk ES Change Analysis - Filtering out False Positive in Splunk Enterprise Security</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Splunk-ES-Change-Analysis-Filtering-out-False-Positive/m-p/443676#M5998</link>
    <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;

&lt;P&gt;I'm having a little trouble tuning a correlation search which ships with ES.&lt;/P&gt;

&lt;P&gt;The rule primarily looks for when event logs have been cleared or the logging has been stopped.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| from datamodel:"Change_Analysis"."Auditing_Changes" 
| where ('action'="cleared" OR 'action'="stopped" ) 
| stats max(_time) as "lastTime",latest(_raw) as "orig_raw",count by "dest","result" 
| rename "result" as "signature"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In our environment, all of these alerts (and we get hundreds) are caused by the machine restarting due to a reboot, mainly when a patch is pushed out.&lt;/P&gt;

&lt;P&gt;I have found a way of tuning these out so they won't alert but I'm stuck with how to implement it.&lt;/P&gt;

&lt;P&gt;What I've found is that there is an eventcode "1074" which occurs before, which is a remote restart command. &lt;/P&gt;

&lt;P&gt;Unfortunately, the data model which this is using to alert, doesn't contain that particular eventcode and only looks for "1100" which is  the code when a the service is stopped.&lt;/P&gt;

&lt;P&gt;I can get this to work mostly while using this command, but it's not 100%.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=wineventlog sourcetype=WinEventLog*   EventCode=1074 OR EventCode=1100 | transaction startswith=EventCode="1074" endswith=EventCode="1100"
|  stats count by dest
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What I'm really looking for is an "alert" which fires if there has been a log cleared without a preceding reboot event. If anyone has got any ideas which would work.  If they work within a data model, would be better, but just getting it to work is a higher priority, (even if&lt;BR /&gt;
 this means making a change to the data model itself). &lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;

&lt;P&gt;Steve&lt;/P&gt;</description>
    <pubDate>Mon, 18 Mar 2019 16:01:26 GMT</pubDate>
    <dc:creator>swright_rl</dc:creator>
    <dc:date>2019-03-18T16:01:26Z</dc:date>
    <item>
      <title>Splunk ES Change Analysis - Filtering out False Positive</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Splunk-ES-Change-Analysis-Filtering-out-False-Positive/m-p/443676#M5998</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;

&lt;P&gt;I'm having a little trouble tuning a correlation search which ships with ES.&lt;/P&gt;

&lt;P&gt;The rule primarily looks for when event logs have been cleared or the logging has been stopped.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| from datamodel:"Change_Analysis"."Auditing_Changes" 
| where ('action'="cleared" OR 'action'="stopped" ) 
| stats max(_time) as "lastTime",latest(_raw) as "orig_raw",count by "dest","result" 
| rename "result" as "signature"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In our environment, all of these alerts (and we get hundreds) are caused by the machine restarting due to a reboot, mainly when a patch is pushed out.&lt;/P&gt;

&lt;P&gt;I have found a way of tuning these out so they won't alert but I'm stuck with how to implement it.&lt;/P&gt;

&lt;P&gt;What I've found is that there is an eventcode "1074" which occurs before, which is a remote restart command. &lt;/P&gt;

&lt;P&gt;Unfortunately, the data model which this is using to alert, doesn't contain that particular eventcode and only looks for "1100" which is  the code when a the service is stopped.&lt;/P&gt;

&lt;P&gt;I can get this to work mostly while using this command, but it's not 100%.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=wineventlog sourcetype=WinEventLog*   EventCode=1074 OR EventCode=1100 | transaction startswith=EventCode="1074" endswith=EventCode="1100"
|  stats count by dest
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What I'm really looking for is an "alert" which fires if there has been a log cleared without a preceding reboot event. If anyone has got any ideas which would work.  If they work within a data model, would be better, but just getting it to work is a higher priority, (even if&lt;BR /&gt;
 this means making a change to the data model itself). &lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;

&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 16:01:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Splunk-ES-Change-Analysis-Filtering-out-False-Positive/m-p/443676#M5998</guid>
      <dc:creator>swright_rl</dc:creator>
      <dc:date>2019-03-18T16:01:26Z</dc:date>
    </item>
  </channel>
</rss>

