Getting Data In

Invalid key within a stanza?

jaburke1
Path Finder

Is there a way to get a list of valid keys for a stanza?

For example: If you get "Invalid key in stanza" for something like:

[file_integrity]
exclude = /file/path

It doesn't like the "exclude" but is there an alternative "key" value to accomplish the same? Thanks in advance!

 

Labels (1)
Tags (1)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Valid keys are documented in the related .spec file in $SPLUNK_HOME/etc/system/README.  For instance, for the keys for props.conf see $SPLUNK_HOME/etc/system/README/props.conf.spec.

You also can find the information in the Admin Manual.

---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

Valid keys are documented in the related .spec file in $SPLUNK_HOME/etc/system/README.  For instance, for the keys for props.conf see $SPLUNK_HOME/etc/system/README/props.conf.spec.

You also can find the information in the Admin Manual.

---
If this reply helps you, Karma would be appreciated.

PickleRick
SplunkTrust
SplunkTrust

One caveat - there are occasionally situations (especially with newly introduced features) that the .spec file does not contain proper entry. It doesn't happen often but it does happen sometimes.

jaburke1
Path Finder

Thank you @PickleRick 

0 Karma

jaburke1
Path Finder

Thank you very much @richgalloway !

0 Karma

richgalloway
SplunkTrust
SplunkTrust

If your problem is resolved, then please click the "Accept as Solution" button to help future readers.

---
If this reply helps you, Karma would be appreciated.
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...