<?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: Blacklisting windows event logs based on EventCode and Application name in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Blacklisting-windows-event-logs-based-on-EventCode-and/m-p/506062#M86192</link>
    <description>&lt;P&gt;Try this on the UF.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;blacklist1 = EventCode="^515[68]$" Message="Application\sName:\s(?:\\device\\harddiskvolume2\\program\sfiles\\zabbix\sagent\\zabbix_agentd\.exe|\\device\\harddiskvolume2\\program\sfiles\\splunkuniversalforwarder\\bin\\splunkd\.exe)$"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;If you do not want to use the full paths you could use:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;blacklist1 = EventCode="^515[68]$" Message="Application\sName:\s.*(?:zabbix_agentd|splunkd)\.exe$"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Jun 2020 21:17:19 GMT</pubDate>
    <dc:creator>spayneort</dc:creator>
    <dc:date>2020-06-24T21:17:19Z</dc:date>
    <item>
      <title>Blacklisting windows event logs based on EventCode and Application name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Blacklisting-windows-event-logs-based-on-EventCode-and/m-p/505827#M86161</link>
      <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;I am trying to filter the windows event based on the &lt;STRONG&gt;Application Name &lt;/STRONG&gt;and&lt;STRONG&gt;&amp;nbsp;EventCode.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Application_name I am trying to blacklist are&amp;nbsp;&lt;EM&gt;splunkd.exe&lt;/EM&gt; &amp;amp;&lt;EM&gt;&amp;nbsp;zabbix_agentd.exe&amp;nbsp;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;EventCode: 5156 &amp;amp; 5158&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#333399"&gt;Sample Event:&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#000080"&gt;06/18/2020 10:00:28 PM&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#000080"&gt;LogName=Security&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#000080"&gt;SourceName=Microsoft Windows security auditing.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#000080"&gt;EventCode=5156&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#000080"&gt;EventType=0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#000080"&gt;Type=Information&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#000080"&gt;ComputerName=GURUABC.ad.xyz.com&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#000080"&gt;TaskCategory=Filtering Platform Connection&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#000080"&gt;OpCode=Info&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#000080"&gt;RecordNumber=1759943456&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#000080"&gt;Keywords=Audit Success&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#000080"&gt;Message=The Windows Filtering Platform has permitted a connection.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#000080"&gt;Application Information:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#000080"&gt;Process ID: 8873&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#000080"&gt;Application Name: \device\harddiskvolume2\program files\splunkuniversalforwarder\bin\splunkd.exe&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#000080"&gt;Network Information:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#000080"&gt;Direction: Outbound&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#000080"&gt;Source Address: 112.31.122.191&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#000080"&gt;Source Port: 49346&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#000080"&gt;Destination Address: 11.213.158.112&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#000080"&gt;Destination Port: 8089&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#000080"&gt;Protocol: 6&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#000080"&gt;Filter Information:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#000080"&gt;Filter Run-Time ID: 66887&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#000080"&gt;Layer Name: Connect&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#000080"&gt;Layer Run-Time ID: 87&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Inputs.conf on UF:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;[WinEventLog://Security]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;disabled = 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;start_from = oldest&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;current_only = 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;evt_resolve_ad_obj = 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;checkpointInterval = 5&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;I have tried the following different different blacklisting options under inputs.conf UF.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;# Option 1: &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;blacklist1=EventCode="5156" Message=”Application Name:\s(?\device\harddiskvolume2\program files\zabbix agent\zabbix_agentd.exe)”&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;blacklist2=EventCode="5156" Message=”Application Name:\s(?\device\harddiskvolume2\program files\splunkuniversalforwarder\bin\splunkd.exe)”&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;BR /&gt;blacklist3=EventCode="5158" Message=”Application Name:\s(?\device\harddiskvolume2\program files\zabbix agent\zabbix_agentd.exe)”&lt;BR /&gt;blacklist4=EventCode="5158" Message=”Application Name:\s(?\device\harddiskvolume2\program files\splunkuniversalforwarder\bin\splunkd.exe)”&lt;BR /&gt;&lt;BR /&gt;# Option 2:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;blacklist1=EventCode="5156" ”Application\sName:\s(?\device\harddiskvolume3\program files\splunkuniversalforwarder\bin\splunkd.exe)"&lt;BR /&gt;blacklist2=EventCode="5158" ”Application\sName:\s(?\device\harddiskvolume3\program files\splunkuniversalforwarder\bin\splunkd.exe)"&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;# Option 3:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;blacklist1=EventCode=%^5158$% Message=%*zabbix_agentd.exe%&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;blacklist2=EventCode=%^5158$% Message=%*splunkd.exe%&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;# Option 4:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;blacklist1=EventCode=%^5156$% Application Name=%(*\bin\splunkd.exe|*\zabbix_agentd.exe)%&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;blacklist2=EventCode=%^5158$% Application Name=%(*\bin\splunkd.exe|*\zabbix_agentd.exe)%&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;# Option 5:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;blacklist1 = EventCode="5156" Application Name:"(*splunkd.exe|*zabbix_agentd.exe)"&lt;BR /&gt;blacklist2 = EventCode="5158" Application Name:"(*splunkd.exe|*zabbix_agentd.exe)"&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;# Option 6:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;[WinEventLog://Security]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;blacklist1=EventCode="5156" Message="Workstation Name:\s+*zabbix_agentd.exe*"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;blacklist2=EventCode="5158" Message="Application Name:\s+*zabbix_agentd.exe*"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;# Option 7: I have tried following under props &amp;amp; transforms on HF for routing the data to null queue.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;On HF :&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;In props.conf,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;[WinEventLog]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;TRANSFORMS-null= setnull&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;In transforms.conf&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;[setnull]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;REGEX = (?s)EventCode=(5156|5158).*Application Name:\s.device.*\\splunkd.exe&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;DEST_KEY = queue&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;FORMAT = nullQueue&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Unfortunately non of the above is working. Please suggest.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Thanks in advance.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 20:06:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Blacklisting-windows-event-logs-based-on-EventCode-and/m-p/505827#M86161</guid>
      <dc:creator>dkolekar</dc:creator>
      <dc:date>2020-06-23T20:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Blacklisting windows event logs based on EventCode and Application name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Blacklisting-windows-event-logs-based-on-EventCode-and/m-p/506062#M86192</link>
      <description>&lt;P&gt;Try this on the UF.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;blacklist1 = EventCode="^515[68]$" Message="Application\sName:\s(?:\\device\\harddiskvolume2\\program\sfiles\\zabbix\sagent\\zabbix_agentd\.exe|\\device\\harddiskvolume2\\program\sfiles\\splunkuniversalforwarder\\bin\\splunkd\.exe)$"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;If you do not want to use the full paths you could use:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;blacklist1 = EventCode="^515[68]$" Message="Application\sName:\s.*(?:zabbix_agentd|splunkd)\.exe$"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2020 21:17:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Blacklisting-windows-event-logs-based-on-EventCode-and/m-p/506062#M86192</guid>
      <dc:creator>spayneort</dc:creator>
      <dc:date>2020-06-24T21:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Blacklisting windows event logs based on EventCode and Application name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Blacklisting-windows-event-logs-based-on-EventCode-and/m-p/506065#M86194</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/149381"&gt;@spayneort&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for your reply. Unfortunately, both the blacklist stanza did not work. I applied this under monitoring stanza of UF.&amp;nbsp;&lt;/P&gt;&lt;P&gt;[WinEventLog://Security]&lt;BR /&gt;disabled = 0&lt;BR /&gt;ignoreOlderThan = 7d&lt;BR /&gt;evt_resolve_ad_obj = 1&lt;BR /&gt;checkpointInterval = 5&lt;BR /&gt;current_only=1&lt;BR /&gt;renderXml=false&lt;BR /&gt;index = win_event_logs&lt;BR /&gt;blacklist1= EventCode="^515[68]$" Message="Application\sName:\s.*(?:zabbix_agentd|splunkd)\.exe$"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2020 21:53:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Blacklisting-windows-event-logs-based-on-EventCode-and/m-p/506065#M86194</guid>
      <dc:creator>dkolekar</dc:creator>
      <dc:date>2020-06-24T21:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: Blacklisting windows event logs based on EventCode and Application name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Blacklisting-windows-event-logs-based-on-EventCode-and/m-p/558192#M92351</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/149381"&gt;@spayneort&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Got this to work with similar syntax&lt;/P&gt;&lt;P&gt;blacklist1 = EventCode="^468[89]$" Message="Process Name:(.*?(SplunkUniversalForwarder|or_any_other_program))"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note the following:&lt;/P&gt;&lt;P&gt;1. The | is an OR&lt;/P&gt;&lt;P&gt;2. This finds anything the starts with your program&lt;/P&gt;&lt;P&gt;3. be careful of spaces, sometimes they don't really exist&lt;/P&gt;&lt;P&gt;4. Don't use $ as you'll need a wild card to find what you're looking for, plus more processing power required.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps!&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jul 2021 18:28:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Blacklisting-windows-event-logs-based-on-EventCode-and/m-p/558192#M92351</guid>
      <dc:creator>Powers</dc:creator>
      <dc:date>2021-07-02T18:28:01Z</dc:date>
    </item>
  </channel>
</rss>

