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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

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

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...