Splunk Search

Adding help for custom search commands in splunk 6?

rsathish47
Contributor

Hi all,

I have created custom search command. I need to add a custom search command to the list that search help pops up.

Tags (2)
0 Karma

rsennett_splunk
Splunk Employee
Splunk Employee

Your answer is explained in detail
HERE

Here is an example of searchbnf.conf
Maybe it'll be easier to keep things clean if you create your cmd as a TA and install it like an App...
usage=public below will have the same effect as if you edited the $SPLUNK_HOME/etc/system/local settings

##################
# myspecialcmd lookup
##################
[myspecialcmd-command]
syntax = | myspecialcmd
shortdesc = lookup special things to get Manufactor Company Name
description = lookup the standard IEEE 802 special things addresses in an internet DB http://api.specialthings.com/ to get Manufactor Company Name
usage = public
example1 = | myspecialcmd
comment1 = lookup specialthings on internet db
related =
tags =

[myspecialcmd-options]
syntax = SPECIAL_THING
description = lookup special things in internet DB to get Manufactor Company Name

Note, usage=public will make the cmd global. Check the settings you want.

With Splunk... the answer is always "YES!". It just might require more regex than you're prepared for!

ChrisG
Splunk Employee
Splunk Employee

The link works for me....

0 Karma

rsathish47
Contributor

i checked the link but it is not working.

0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...