<?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 edit inputs.conf in order to whitelist incoming Windows events by EventCode? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-in-order-to-whitelist-incoming-Windows/m-p/269814#M51802</link>
    <description>&lt;P&gt;Currently are you seeing all event codes from Security and not just 4663?&lt;/P&gt;

&lt;P&gt;When you disable the WinEventLog://Security does it stop sending the events?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [WinEventLog://Security]
 disabled = 1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 11 Dec 2016 04:41:55 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2016-12-11T04:41:55Z</dc:date>
    <item>
      <title>How to edit inputs.conf in order to whitelist incoming Windows events by EventCode?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-in-order-to-whitelist-incoming-Windows/m-p/269804#M51792</link>
      <description>&lt;P&gt;Hello there, &lt;/P&gt;

&lt;P&gt;I'm currently trying to whilelist incoming Windows events by EventCode, but it doesn't actually filter the events. I've searched through various documentations, but can't seem to find the right settings.&lt;/P&gt;

&lt;P&gt;Here's what I did:&lt;BR /&gt;
in Splunk\etc\system\local\inputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[WinEventLog://Security]
disabled = 0
start_from = oldest
current_only = 0
evt_resolve_ad_obj = 1
checkpointInterval = 5
# only index events with these event IDs. (I also tried whitelist = 4663 )
whitelist1 = EventCode=4663
# exclude these event IDs from being indexed.
# blacklist = 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'm still a bit confused about which inputs.conf is for what (if anyone has a good documentation for that...)&lt;BR /&gt;
Did I chose the right one? I tried restarting Splunk, but it's still indexing the wrong events.&lt;/P&gt;

&lt;P&gt;What am I missing?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2016 11:38:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-in-order-to-whitelist-incoming-Windows/m-p/269804#M51792</guid>
      <dc:creator>elindemann</dc:creator>
      <dc:date>2016-12-09T11:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit inputs.conf in order to whitelist incoming Windows events by EventCode?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-in-order-to-whitelist-incoming-Windows/m-p/269805#M51793</link>
      <description>&lt;P&gt;Hi elindemann,&lt;BR /&gt;
the best documentation you can find is at &lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.1/Admin/Inputsconf"&gt;https://docs.splunk.com/Documentation/Splunk/6.5.1/Admin/Inputsconf&lt;/A&gt;.&lt;BR /&gt;
If your filter doesn't run verify the regex you used in your whitelist.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2016 13:09:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-in-order-to-whitelist-incoming-Windows/m-p/269805#M51793</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-12-09T13:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit inputs.conf in order to whitelist incoming Windows events by EventCode?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-in-order-to-whitelist-incoming-Windows/m-p/269806#M51794</link>
      <description>&lt;P&gt;Hello Guiseppe, &lt;/P&gt;

&lt;P&gt;thanks for the reply.&lt;/P&gt;

&lt;P&gt;From the documentation:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# Event Log filtering
#
# Filtering at the input layer is desirable to reduce the total
# processing load in network transfer and computation on the Splunk
# nodes that acquire and processing Event Log data.

whitelist = &amp;lt;list of eventIDs&amp;gt; | key=regex [key=regex]
blacklist = &amp;lt;list of eventIDs&amp;gt; | key=regex [key=regex]

[...]

* These settings are optional.
* Both numbered and unnumbered whitelists and blacklists support two formats:
  * A comma-separated list of event IDs.
  * A list of key=regular expression pairs.
  * You cannot combine these formats. You can use either format on a specific
    line.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;so I adjusted my inputs.conf to&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[WinEventLog://Security]
disabled = 0
start_from = oldest
current_only = 0
evt_resolve_ad_obj = 1
checkpointInterval = 5
# only index events with these event IDs.
# whitelist = EventCode="4663"
whitelist = 4663
# exclude these event IDs from being indexed.
#blacklist = 2001-3000
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but still with the same result. It can't be the regex because I actually don't want to mess with it when I can just take the super easy approach.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2016 14:27:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-in-order-to-whitelist-incoming-Windows/m-p/269806#M51794</guid>
      <dc:creator>elindemann</dc:creator>
      <dc:date>2016-12-09T14:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit inputs.conf in order to whitelist incoming Windows events by EventCode?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-in-order-to-whitelist-incoming-Windows/m-p/269807#M51795</link>
      <description>&lt;P&gt;Hi elindemann,&lt;BR /&gt;
I don't think that it's correct &lt;CODE&gt;whitelist = 4663&lt;/CODE&gt; but it should be better &lt;CODE&gt;whitelist = EventCode=4663&lt;/CODE&gt; or &lt;CODE&gt;whitelist = EventCode\=4663&lt;/CODE&gt;.&lt;BR /&gt;
In &lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.1/Admin/Inputsconf"&gt;https://docs.splunk.com/Documentation/Splunk/6.5.1/Admin/Inputsconf&lt;/A&gt; there is an example &lt;CODE&gt;whitelist = EventCode=%^200$%&lt;/CODE&gt; &lt;BR /&gt;
I usually don't filter events in Universal Forwarder but only on the Indexers.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2016 14:38:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-in-order-to-whitelist-incoming-Windows/m-p/269807#M51795</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-12-09T14:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit inputs.conf in order to whitelist incoming Windows events by EventCode?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-in-order-to-whitelist-incoming-Windows/m-p/269808#M51796</link>
      <description>&lt;P&gt;Hello Guiseppe, &lt;/P&gt;

&lt;P&gt;I tried &lt;CODE&gt;whitelist = EventCode\=4663&lt;/CODE&gt; and &lt;CODE&gt;whitelist = EventCode=%^4663$%&lt;/CODE&gt; but both didn't work.&lt;/P&gt;

&lt;P&gt;My problem is that I want to get that one EventCode, but it's generated with a lot of other noise around it that I don't want indexed, mostly because it would hit the liscense pretty hard without any good reason.&lt;/P&gt;

&lt;P&gt;Do you know any other way that would be possible?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2016 16:00:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-in-order-to-whitelist-incoming-Windows/m-p/269808#M51796</guid>
      <dc:creator>elindemann</dc:creator>
      <dc:date>2016-12-09T16:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit inputs.conf in order to whitelist incoming Windows events by EventCode?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-in-order-to-whitelist-incoming-Windows/m-p/269809#M51797</link>
      <description>&lt;P&gt;Hi elindemann,&lt;BR /&gt;
It's possible and I did it, but I used a different approach: I filtered events on the indexers, I didn't use whitelist.&lt;BR /&gt;
I know that this solves only the Splunk license problem and don't eliminate network traffic but gives me more control on the filter.&lt;BR /&gt;
bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Sat, 10 Dec 2016 08:57:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-in-order-to-whitelist-incoming-Windows/m-p/269809#M51797</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-12-10T08:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit inputs.conf in order to whitelist incoming Windows events by EventCode?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-in-order-to-whitelist-incoming-Windows/m-p/269810#M51798</link>
      <description>&lt;P&gt;Hi Guiseppe, &lt;/P&gt;

&lt;P&gt;can you tell me how you did it?&lt;BR /&gt;
I'm not that concerned about network traffic.&lt;BR /&gt;
Just to be clear, I'm not using forwarders or any fancy setups. All I have is the Splunk server on one machine and the file server on another.  The Splunk server is getting the events by itself and I want not all these events filtered.&lt;/P&gt;

&lt;P&gt;maybe my first approach wasn't the right one?&lt;/P&gt;</description>
      <pubDate>Sat, 10 Dec 2016 15:22:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-in-order-to-whitelist-incoming-Windows/m-p/269810#M51798</guid>
      <dc:creator>elindemann</dc:creator>
      <dc:date>2016-12-10T15:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit inputs.conf in order to whitelist incoming Windows events by EventCode?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-in-order-to-whitelist-incoming-Windows/m-p/269811#M51799</link>
      <description>&lt;P&gt;Try the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;whitelist=EventCode="^4663$"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 10 Dec 2016 18:04:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-in-order-to-whitelist-incoming-Windows/m-p/269811#M51799</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2016-12-10T18:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit inputs.conf in order to whitelist incoming Windows events by EventCode?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-in-order-to-whitelist-incoming-Windows/m-p/269812#M51800</link>
      <description>&lt;P&gt;hi niketnilay, &lt;/P&gt;

&lt;P&gt;this doesn't seem to work for me.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Dec 2016 18:17:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-in-order-to-whitelist-incoming-Windows/m-p/269812#M51800</guid>
      <dc:creator>elindemann</dc:creator>
      <dc:date>2016-12-10T18:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit inputs.conf in order to whitelist incoming Windows events by EventCode?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-in-order-to-whitelist-incoming-Windows/m-p/269813#M51801</link>
      <description>&lt;P&gt;I think that you should use a Universal Forwarder on the file server, in this way file transfer between file server and Splunk server is optimized in very many ways (compression, cache, bandwidth, etc...&lt;BR /&gt;
Every way, to filter events (see &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.1/Forwarding/Routeandfilterdatad"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.1/Forwarding/Routeandfilterdatad&lt;/A&gt;) you have to edit:&lt;BR /&gt;
props.conf &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[your_sourcetype]
TRANSFORMS-null= setnull
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[setnull]
REGEX = EventCode\=4663
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and restart Splunk&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Sat, 10 Dec 2016 21:23:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-in-order-to-whitelist-incoming-Windows/m-p/269813#M51801</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-12-10T21:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit inputs.conf in order to whitelist incoming Windows events by EventCode?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-in-order-to-whitelist-incoming-Windows/m-p/269814#M51802</link>
      <description>&lt;P&gt;Currently are you seeing all event codes from Security and not just 4663?&lt;/P&gt;

&lt;P&gt;When you disable the WinEventLog://Security does it stop sending the events?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [WinEventLog://Security]
 disabled = 1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 11 Dec 2016 04:41:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-in-order-to-whitelist-incoming-Windows/m-p/269814#M51802</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2016-12-11T04:41:55Z</dc:date>
    </item>
  </channel>
</rss>

