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!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...