<?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 When filtering Windows event logs, can you filter on fields other than EventCode, such as Account_Name? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/When-filtering-Windows-event-logs-can-you-filter-on-fields-other/m-p/266320#M51040</link>
    <description>&lt;P&gt;Taken from inputs.conf on the deployment server:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;blacklist1 = EventCode="4662" 
blacklist2 = EventCode="566"
blacklist3 = EventCode="4776"
blacklist4 = EventCode="4768"
blacklist5 = EventCode="4769"
blacklist6 = EventCode="5156"
blacklist7 = EventCode="4658"
blacklist8 = EventCode="4656"
blacklist9 = Account_Name="SERVICE-ACCOUNT-NAME"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The above blacklist works perfect for all EventCodes noted, but I am trying to blacklist activity (specifically high volumes of login events) for particular service accounts. &lt;/P&gt;

&lt;P&gt;Is this possible?&lt;/P&gt;</description>
    <pubDate>Wed, 07 Oct 2015 18:44:58 GMT</pubDate>
    <dc:creator>kftaylor</dc:creator>
    <dc:date>2015-10-07T18:44:58Z</dc:date>
    <item>
      <title>When filtering Windows event logs, can you filter on fields other than EventCode, such as Account_Name?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/When-filtering-Windows-event-logs-can-you-filter-on-fields-other/m-p/266320#M51040</link>
      <description>&lt;P&gt;Taken from inputs.conf on the deployment server:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;blacklist1 = EventCode="4662" 
blacklist2 = EventCode="566"
blacklist3 = EventCode="4776"
blacklist4 = EventCode="4768"
blacklist5 = EventCode="4769"
blacklist6 = EventCode="5156"
blacklist7 = EventCode="4658"
blacklist8 = EventCode="4656"
blacklist9 = Account_Name="SERVICE-ACCOUNT-NAME"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The above blacklist works perfect for all EventCodes noted, but I am trying to blacklist activity (specifically high volumes of login events) for particular service accounts. &lt;/P&gt;

&lt;P&gt;Is this possible?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2015 18:44:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/When-filtering-Windows-event-logs-can-you-filter-on-fields-other/m-p/266320#M51040</guid>
      <dc:creator>kftaylor</dc:creator>
      <dc:date>2015-10-07T18:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: When filtering Windows event logs, can you filter on fields other than EventCode, such as Account_Name?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/When-filtering-Windows-event-logs-can-you-filter-on-fields-other/m-p/266321#M51041</link>
      <description>&lt;P&gt;I've used many of the items documented &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.0/Data/MonitorWindowsdata"&gt;here&lt;/A&gt;.  Though the whole document is a fabulously interesting and useful read, the parts I'd like to point out specifically are as follows.&lt;/P&gt;

&lt;P&gt;In the section &lt;EM&gt;"Event log monitor configuration values"&lt;/EM&gt; you'll find a description of the various ways to use blacklist/whitelist.  In your case, nearly all of those events should be able to be combined into one "easy" syntax line.&lt;BR /&gt;
blacklist1 = 566,4656,4658,4662,4768,4769,4776,5156&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;EXCEPT&lt;/STRONG&gt;, you won't be able to do that because you want to use the advanced filters as described in the section &lt;EM&gt;"Create advanced filters with 'whitelist' and 'blacklist'"&lt;/EM&gt;.  You can't mix the easy and the advanced ones together, not even as separate lines - one stanza can only have one type in it.&lt;/P&gt;

&lt;P&gt;But that's OK because we can rewrite your new and improved blacklist1 above into regex style, and combine them all.  You just have to know where to &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.5/admin/inputsconf"&gt;find it in the docs&lt;/A&gt; (search for "Event ID list format")!  &lt;/P&gt;

&lt;P&gt;Tell you what, I'll just paste in a stanza I have.  I think you can figure it out from there.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[WinEventLog://Security]
blacklist1 = EventCode="4662" Message="Object Type:\s+(?!groupPolicyContainer)"
blacklist2 = EventCode="566" Message="Object Type:\s+(?!groupPolicyContainer)"
blacklist3 = EventCode=%^(4658|4663|5145|5156|5157)$%
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Obviously, my blacklist3 line would be trivially adaptable to your new and extra-improved blacklist1 line.  Just replace the numbers with your own (You'll even notice I blacklist a lot of the events you want to blacklist.  Great minds think alike, eh?)&lt;/P&gt;

&lt;P&gt;Once you have that, you can fiddle around with a blacklist2 line using the two keys that may be of use: &lt;CODE&gt;ComputerName&lt;/CODE&gt; and &lt;CODE&gt;User&lt;/CODE&gt;. &lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2015 02:31:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/When-filtering-Windows-event-logs-can-you-filter-on-fields-other/m-p/266321#M51041</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2015-10-08T02:31:30Z</dc:date>
    </item>
  </channel>
</rss>

