<?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 Aliased Search Command Results In &amp;quot;Unknown Search Command 'my'&amp;quot; in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Aliased-Search-Command-Results-In-quot-Unknown-Search-Command-my/m-p/131721#M1868</link>
    <description>&lt;P&gt;Hey,&lt;/P&gt;

&lt;P&gt;I have the following in my &lt;CODE&gt;searchbnf.conf&lt;/CODE&gt; file but thus far I get an error when trying to use the alias:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[mycommand-command]
syntax = mycommand field=&amp;lt;field&amp;gt; db="&amp;lt;database&amp;gt;,&amp;lt;database&amp;gt;"
simplesyntax = mycommand field=&amp;lt;field&amp;gt; db=&amp;lt;database&amp;gt;
alias = my
shortdesc = Short Description
description = Description
comment1 = Description1
example1 = * | mycommand field=ex_field db=ex_db
comment2 = Description2
example2 = * | mycommand field=ex_field db="ex_db1,ex_db2"
category = fields::add
appears-in = 6.2.3
maintainer = Kevin Kirsche
usage = public
related = stats
tags = tags
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any reason that when trying to use the alias I get the following:&lt;/P&gt;

&lt;P&gt;Command:&lt;BR /&gt;
&lt;CODE&gt;* | my field=ex_field db=ex_db&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Unknown search command 'my'.&lt;/P&gt;

&lt;P&gt;Any idea why this could / would not work?  &lt;/P&gt;</description>
    <pubDate>Tue, 21 Jul 2015 20:26:04 GMT</pubDate>
    <dc:creator>kkirsche</dc:creator>
    <dc:date>2015-07-21T20:26:04Z</dc:date>
    <item>
      <title>Aliased Search Command Results In "Unknown Search Command 'my'"</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Aliased-Search-Command-Results-In-quot-Unknown-Search-Command-my/m-p/131721#M1868</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;

&lt;P&gt;I have the following in my &lt;CODE&gt;searchbnf.conf&lt;/CODE&gt; file but thus far I get an error when trying to use the alias:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[mycommand-command]
syntax = mycommand field=&amp;lt;field&amp;gt; db="&amp;lt;database&amp;gt;,&amp;lt;database&amp;gt;"
simplesyntax = mycommand field=&amp;lt;field&amp;gt; db=&amp;lt;database&amp;gt;
alias = my
shortdesc = Short Description
description = Description
comment1 = Description1
example1 = * | mycommand field=ex_field db=ex_db
comment2 = Description2
example2 = * | mycommand field=ex_field db="ex_db1,ex_db2"
category = fields::add
appears-in = 6.2.3
maintainer = Kevin Kirsche
usage = public
related = stats
tags = tags
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any reason that when trying to use the alias I get the following:&lt;/P&gt;

&lt;P&gt;Command:&lt;BR /&gt;
&lt;CODE&gt;* | my field=ex_field db=ex_db&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Unknown search command 'my'.&lt;/P&gt;

&lt;P&gt;Any idea why this could / would not work?  &lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2015 20:26:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Aliased-Search-Command-Results-In-quot-Unknown-Search-Command-my/m-p/131721#M1868</guid>
      <dc:creator>kkirsche</dc:creator>
      <dc:date>2015-07-21T20:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Aliased Search Command Results In "Unknown Search Command 'my'"</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Aliased-Search-Command-Results-In-quot-Unknown-Search-Command-my/m-p/131722#M1869</link>
      <description>&lt;P&gt;The alias defined in searchbnf.conf only matters for the in-line help displayed under the search bar - it doesn't actually influence commands.conf. I don't see an example in default Splunk, but I guess you'd have to define your command twice there since there seems to be no alias mechanism in commands.conf &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2015 21:01:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Aliased-Search-Command-Results-In-quot-Unknown-Search-Command-my/m-p/131722#M1869</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2015-07-21T21:01:48Z</dc:date>
    </item>
  </channel>
</rss>

