<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Add Custom Search Command to Search Help in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Add-Custom-Search-Command-to-Search-Help/m-p/21023#M3383</link>
    <description>&lt;P&gt;Also -- if you want to share your custom command across apps and have the help still work, you'll need to update the app's &lt;CODE&gt;default.meta&lt;/CODE&gt; or &lt;CODE&gt;local.meta&lt;/CODE&gt; to add an entry for &lt;CODE&gt;searchbnf&lt;/CODE&gt; as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[searchbnf]
export = system
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 03 Dec 2011 22:02:06 GMT</pubDate>
    <dc:creator>dwaddle</dc:creator>
    <dc:date>2011-12-03T22:02:06Z</dc:date>
    <item>
      <title>Add Custom Search Command to Search Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-Custom-Search-Command-to-Search-Help/m-p/21021#M3381</link>
      <description>&lt;P&gt;How can someone add a custom search command to the list that search help pops up?&lt;/P&gt;

&lt;P&gt;I have already added a new custom search command as shown below:&lt;/P&gt;

&lt;P&gt;In $Splunk_home/etc/system/bin I have the following script:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;CustomCommand.py&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;In $Splunk_home/etc/system/local/commands.conf I have the following stanza:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;[CustomCommand]&lt;BR /&gt;
filename = CustomCommand.py&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;In $Splunk_home/etc/system/local/authorize.conf I have the following:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;[[capability::run_script_CustomCommand]&lt;/P&gt;

&lt;P&gt;[role_admin]&lt;BR /&gt;
run_script_CustomCommand = enabled&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Mon, 28 Sep 2020 10:08:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-Custom-Search-Command-to-Search-Help/m-p/21021#M3381</guid>
      <dc:creator>Wiggy</dc:creator>
      <dc:date>2020-09-28T10:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: Add Custom Search Command to Search Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-Custom-Search-Command-to-Search-Help/m-p/21022#M3382</link>
      <description>&lt;P&gt;You must add the following stanza in $Splunk_home/etc/system/local/searchbnf.conf&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;[CustomCommand-command]&lt;BR /&gt;
syntax = CustomCommand &amp;lt;field&amp;gt;&lt;BR /&gt;
description = This is a description of my CustomCommand&lt;BR /&gt;
usage = public&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Once this is added and splunk is restarted, the command should pop up in the search help when you are typing in your relevant search.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2011 22:33:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-Custom-Search-Command-to-Search-Help/m-p/21022#M3382</guid>
      <dc:creator>Wiggy</dc:creator>
      <dc:date>2011-11-22T22:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Add Custom Search Command to Search Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-Custom-Search-Command-to-Search-Help/m-p/21023#M3383</link>
      <description>&lt;P&gt;Also -- if you want to share your custom command across apps and have the help still work, you'll need to update the app's &lt;CODE&gt;default.meta&lt;/CODE&gt; or &lt;CODE&gt;local.meta&lt;/CODE&gt; to add an entry for &lt;CODE&gt;searchbnf&lt;/CODE&gt; as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[searchbnf]
export = system
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 03 Dec 2011 22:02:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-Custom-Search-Command-to-Search-Help/m-p/21023#M3383</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2011-12-03T22:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Add Custom Search Command to Search Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-Custom-Search-Command-to-Search-Help/m-p/21024#M3384</link>
      <description>&lt;P&gt;Thank you dwaddle it helped me&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2014 12:47:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-Custom-Search-Command-to-Search-Help/m-p/21024#M3384</guid>
      <dc:creator>rsathish47</dc:creator>
      <dc:date>2014-06-05T12:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: Add Custom Search Command to Search Help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-Custom-Search-Command-to-Search-Help/m-p/21025#M3385</link>
      <description>&lt;P&gt;Thanks a lot  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2015 06:11:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-Custom-Search-Command-to-Search-Help/m-p/21025#M3385</guid>
      <dc:creator>i2sheri</dc:creator>
      <dc:date>2015-12-22T06:11:03Z</dc:date>
    </item>
  </channel>
</rss>

