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!

What's New in Splunk Enterprise 9.4: Features to Power Your Digital Resilience

Hey Splunky People! We are excited to share the latest updates in Splunk Enterprise 9.4. In this release we ...

Take Your Breath Away with Splunk Risk-Based Alerting (RBA)

WATCH NOW!The Splunk Guide to Risk-Based Alerting is here to empower your SOC like never before. Join Haylee ...

SignalFlow: What? Why? How?

What is SignalFlow? Splunk Observability Cloud’s analytics engine, SignalFlow, opens up a world of in-depth ...