Splunk Search

Splunk doesn't recognize searchbnf.conf

petersob
Explorer

Hi all,

I trying to implement online help for my custom search commands. There is a searchbnf.conf located in the $SPLUNK_HOME/etc/system/default directory.
If I put my configuration into that file everything is working fine, but if I create a new searchbnf.conf in my app-local directory it will not be recognized by splunk.

Is there any possibility to create the searchbnf.conf in the app context (without changing the system-wide one)?

Regards,
Peter

Tags (1)

pongc
Engager

Spoke with Splunk and got the answer.

To add permission for a specific entry within searchbnf, add

[searchbnf/<command stanza header in searchbnf.conf>]
export=system

to metadata\local.meta

To add permission for all searchbnf commands, add

[searchbnf]
export=system

to metadata\local.meta

0 Karma

pongc
Engager

Have this same issue as well. Using
splunk btool searchbnf list --debug
I do see that the app specific searchbnf stanzas are processed, though in search it does not show. It does work if I copy searchbnf.conf to etc\app\search\local so believe it is an configuration permission that needs to be applied via app specific local.meta, but cannot find information on how to define the config. In the GUI I do not see this defined as a config object within the context of the app.

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...