<?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: 'Invalid Key in Stanza' errors being generated at startup for inputs.conf whitelist on a 6.1.4 Heavy Forwarder that docs say should work in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Invalid-Key-in-Stanza-errors-being-generated-at-startup-for/m-p/272270#M52330</link>
    <description>&lt;P&gt;So it seems that the issue is missing "\". If you update your inputs.conf file to be [WinEventLog://Security] it should work.&lt;/P&gt;</description>
    <pubDate>Wed, 06 Apr 2016 18:47:54 GMT</pubDate>
    <dc:creator>Michael_Carlisl</dc:creator>
    <dc:date>2016-04-06T18:47:54Z</dc:date>
    <item>
      <title>'Invalid Key in Stanza' errors being generated at startup for inputs.conf whitelist on a 6.1.4 Heavy Forwarder that docs say should work</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Invalid-Key-in-Stanza-errors-being-generated-at-startup-for/m-p/272263#M52323</link>
      <description>&lt;P&gt;Per these docs &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.4/Data/MonitorWindowsdata"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.4/Data/MonitorWindowsdata&lt;/A&gt; I have changed from the old way of using transforms to filter out unwanted Windows Events from logs I am monitoring to using a whitelist in inputs.conf. I am sending these to forwarders on various windows systems using deployment monitor. While restarting a Splunk forwarder that had died for some reason, I got this error on startup:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Invalid key in stanza [WinEventLog:Security] in C:\Program Files\Splunk\etc\apps\OIT_WINEVENT_DC_INDEX_WIN_01\default\inputs
.conf, line 23: whitelist (value: 528-535,539-540,624-626,632,636,659,642-644,660,675-676,671-672,680-681,1100,1102,1104,1108,4612,4616,4618,4624-4625,4634,4720,4728,4732,4738,4740,4756,4767-4768,4771-4772,4776,5461 )
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here is the stanza from the inputs.conf file in question:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[WinEventLog:Security]
disabled = 0
index= winevent_dc_index
whitelist = 528-535,539-540,624-626,632,636,659,642-644,660,675-676,671-672,680-681,1100,1102,1104,1108,4612,4616,4618,4624-4625,4634,4720,4728,4732,4738,4740,4756,4767-4768,4771-4772,4776,5461 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It looks just like the example in the documentation. Also, this blog entry says it should work in Splunk 6: &lt;A href="http://blogs.splunk.com/2013/10/14/windows-event-logs-in-splunk-6/"&gt;http://blogs.splunk.com/2013/10/14/windows-event-logs-in-splunk-6/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;So, why is  this not working?&lt;/P&gt;

&lt;P&gt;I also ran btool (it says the same thing):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;C:\Program Files\Splunk\bin&amp;gt;splunk btool check --debug

Invalid key in stanza [WinEventLog:Security] in C:\Program Files\Splunk\etc\apps\OIT_WINEVENT_DC_INDEX_WIN_01\default\inputs.conf, line 23: whitelist  (value:  528-535,539-540,624-626,632,636,659,642-644,660,675-676,671-672,680-681,1100,1102,1104,1108,4612,4616,4618,4624-4625,4634,4720,4728,4732,4738,4740,4756,4767-4768,4771-4772,4776,5461 )
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Dec 2015 00:26:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Invalid-Key-in-Stanza-errors-being-generated-at-startup-for/m-p/272263#M52323</guid>
      <dc:creator>wrangler2x</dc:creator>
      <dc:date>2015-12-15T00:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: 'Invalid Key in Stanza' errors being generated at startup for inputs.conf whitelist on a 6.1.4 Heavy Forwarder that docs say should work</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Invalid-Key-in-Stanza-errors-being-generated-at-startup-for/m-p/272264#M52324</link>
      <description>&lt;P&gt;Hi wrangler2x, &lt;/P&gt;

&lt;P&gt;just a hint, look at the &lt;CODE&gt;inputs.conf.spec&lt;/CODE&gt; file if this is listed &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  whitelist = &amp;lt;regular expression&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Usually if you get this error something is missing in the &lt;CODE&gt;.conf.spec&lt;/CODE&gt; file.&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2015 00:32:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Invalid-Key-in-Stanza-errors-being-generated-at-startup-for/m-p/272264#M52324</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-12-15T00:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: 'Invalid Key in Stanza' errors being generated at startup for inputs.conf whitelist on a 6.1.4 Heavy Forwarder that docs say should work</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Invalid-Key-in-Stanza-errors-being-generated-at-startup-for/m-p/272265#M52325</link>
      <description>&lt;P&gt;In the link you have there, there is a section called &lt;STRONG&gt;EventLog filtering&lt;/STRONG&gt; which shows what the 6.1.4 documentation page I linked to (original question) describes. However, if I look at the actual 6.1.4 inputs.conf.spec I don't find that. Looks like my release may not support it, and the docs are wrong.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2015 00:46:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Invalid-Key-in-Stanza-errors-being-generated-at-startup-for/m-p/272265#M52325</guid>
      <dc:creator>wrangler2x</dc:creator>
      <dc:date>2015-12-15T00:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: 'Invalid Key in Stanza' errors being generated at startup for inputs.conf whitelist on a 6.1.4 Heavy Forwarder that docs say should work</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Invalid-Key-in-Stanza-errors-being-generated-at-startup-for/m-p/272266#M52326</link>
      <description>&lt;P&gt;No, it more means someone forgot to add in the inputs.conf.spec and therefore splunk does not know about it and thinks it is an error. &lt;/P&gt;

&lt;P&gt;BTW just downloaded a 6.1.4 Windows UF 64Bit and the &lt;CODE&gt;input.conf.spec&lt;/CODE&gt; contains this on line 174:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; whitelist = &amp;lt;regular expression&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Maybe download your version again?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2015 01:18:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Invalid-Key-in-Stanza-errors-being-generated-at-startup-for/m-p/272266#M52326</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-12-15T01:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: 'Invalid Key in Stanza' errors being generated at startup for inputs.conf whitelist on a 6.1.4 Heavy Forwarder that docs say should work</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Invalid-Key-in-Stanza-errors-being-generated-at-startup-for/m-p/272267#M52327</link>
      <description>&lt;P&gt;Hi, your stanza looks all right to me.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Have you tried adding your event codes one at a time and see what happens?&lt;/LI&gt;
&lt;LI&gt;Maybe the line is too long?&lt;/LI&gt;
&lt;LI&gt;Or:&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;[MODE PARANOID ON]&lt;BR /&gt;
Maybe the hyphen separating your event ID ranges is not the right type of hyphen.&lt;BR /&gt;
See this: &lt;A href="https://www.cs.tut.fi/%7Ejkorpela/dashes.html"&gt;https://www.cs.tut.fi/~jkorpela/dashes.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Or maybe there are hidden characters that your editor does not display&lt;BR /&gt;
[MODE PARANOID OFF]&lt;/P&gt;

&lt;P&gt;Hope that helps,&lt;BR /&gt;
J&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2015 10:38:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Invalid-Key-in-Stanza-errors-being-generated-at-startup-for/m-p/272267#M52327</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2015-12-15T10:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: 'Invalid Key in Stanza' errors being generated at startup for inputs.conf whitelist on a 6.1.4 Heavy Forwarder that docs say should work</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Invalid-Key-in-Stanza-errors-being-generated-at-startup-for/m-p/272268#M52328</link>
      <description>&lt;P&gt;@MuS I have that same thing on line 174 also. But that is in the Monitor section. If you look at the latest documentation, under this section:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;###
# Windows Event Log Monitor
###
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You will find a sub-section which looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# EventLog filtering
#
# Filtering at the input layer is desirable to reduce the total processing load
# in network transfer and computation on the Splunk nodes acquiring and
# processing the data.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and in this section there is this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;whitelist = &amp;lt;list of eventIDs&amp;gt; | key=regex [key=regex]
blacklist = &amp;lt;list of eventIDs&amp;gt; | key=regex [key=regex]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And this:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;The base unumbered whitelist and blacklist support two formats, a list of integer event IDs, and a list of key=regex pairs.&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Now, in my 6.1.4 spec, in the &lt;EM&gt;Windows Event Log Monitor&lt;/EM&gt; section, there is no subsection called &lt;EM&gt;EventLog filtering&lt;/EM&gt;. However, just below the &lt;CODE&gt;evt_dns_name =&lt;/CODE&gt; and  &lt;CODE&gt;index =&lt;/CODE&gt; specs, I do find these two (lines 1130 and 1141, respectively) :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;whitelist = &amp;lt;list&amp;gt; | key=regex [key=regex]
blacklist = &amp;lt;list&amp;gt; | key=regex [key=regex]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And there are two comments with the &lt;EM&gt;whitelist&lt;/EM&gt; which read:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; * In list form, tells Splunk which event IDs and/or event ID ranges that incoming events must have
  in order to be indexed.
 * In list form, A comma-separated list of event ID and event ID ranges to include (example: 4,5,7,100-200).
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So, I'd say they are in the spec, although documented much differently than in the current documentation!&lt;/P&gt;

&lt;P&gt;So, what next?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2015 20:13:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Invalid-Key-in-Stanza-errors-being-generated-at-startup-for/m-p/272268#M52328</guid>
      <dc:creator>wrangler2x</dc:creator>
      <dc:date>2015-12-15T20:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: 'Invalid Key in Stanza' errors being generated at startup for inputs.conf whitelist on a 6.1.4 Heavy Forwarder that docs say should work</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Invalid-Key-in-Stanza-errors-being-generated-at-startup-for/m-p/272269#M52329</link>
      <description>&lt;P&gt;I removed all of the hyphens and used just a full list with commas only. Same error. Then I delected the whitelist line and manually added a new line which reads  &lt;CODE&gt;whitelist = 528&lt;/CODE&gt; to keep it really simple, and so there was no chance of a hidden character. Same error on restart. &lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2015 20:32:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Invalid-Key-in-Stanza-errors-being-generated-at-startup-for/m-p/272269#M52329</guid>
      <dc:creator>wrangler2x</dc:creator>
      <dc:date>2015-12-15T20:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: 'Invalid Key in Stanza' errors being generated at startup for inputs.conf whitelist on a 6.1.4 Heavy Forwarder that docs say should work</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Invalid-Key-in-Stanza-errors-being-generated-at-startup-for/m-p/272270#M52330</link>
      <description>&lt;P&gt;So it seems that the issue is missing "\". If you update your inputs.conf file to be [WinEventLog://Security] it should work.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2016 18:47:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Invalid-Key-in-Stanza-errors-being-generated-at-startup-for/m-p/272270#M52330</guid>
      <dc:creator>Michael_Carlisl</dc:creator>
      <dc:date>2016-04-06T18:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: 'Invalid Key in Stanza' errors being generated at startup for inputs.conf whitelist on a 6.1.4 Heavy Forwarder that docs say should work</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Invalid-Key-in-Stanza-errors-being-generated-at-startup-for/m-p/272271#M52331</link>
      <description>&lt;P&gt;Wait, that's confusing... You say it is missing "\" then show "//" in [WinEventLog://Security]&lt;/P&gt;

&lt;P&gt;But yeah, the docs at &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.2/Data/MonitorWindowsdata"&gt;http://docs.splunk.com/Documentation/Splunk/6.0.2/Data/MonitorWindowsdata&lt;/A&gt; show it as "//".&lt;/P&gt;

&lt;P&gt;I did not set up the stanzas we are using (which otherwise work fine without the "//") and the blog at &lt;A href="http://blogs.splunk.com/2013/10/14/windows-event-logs-in-splunk-6/"&gt;http://blogs.splunk.com/2013/10/14/windows-event-logs-in-splunk-6/&lt;/A&gt; shows it without the "//" so I did not event know these were missing until I read your comment. Did you test to see if adding them in allows the whitelist? Which version of Splunk?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2016 19:13:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Invalid-Key-in-Stanza-errors-being-generated-at-startup-for/m-p/272271#M52331</guid>
      <dc:creator>wrangler2x</dc:creator>
      <dc:date>2016-04-06T19:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: 'Invalid Key in Stanza' errors being generated at startup for inputs.conf whitelist on a 6.1.4 Heavy Forwarder that docs say should work</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Invalid-Key-in-Stanza-errors-being-generated-at-startup-for/m-p/272272#M52332</link>
      <description>&lt;P&gt;I tested it in version 6.3.1. Sorry about putting "\". There's also an issue with [WinEventLog:Application] if you ever use the Citrix Add Ons and use their inputs.conf file.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2016 19:50:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Invalid-Key-in-Stanza-errors-being-generated-at-startup-for/m-p/272272#M52332</guid>
      <dc:creator>Michael_Carlisl</dc:creator>
      <dc:date>2016-04-06T19:50:45Z</dc:date>
    </item>
  </channel>
</rss>

