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!

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 ...