<?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: Custom Search Command in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Custom-Search-Command/m-p/77220#M19534</link>
    <description>&lt;P&gt;Thanks. I had the same problem and it turned out I had forgotten to add "export=system" to default.meta in my app.&lt;/P&gt;</description>
    <pubDate>Fri, 14 Mar 2014 22:16:48 GMT</pubDate>
    <dc:creator>helge</dc:creator>
    <dc:date>2014-03-14T22:16:48Z</dc:date>
    <item>
      <title>Custom Search Command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-Search-Command/m-p/77217#M19531</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have some questions on custom search commands. I've copied this Python script named &lt;CODE&gt;log.py&lt;/CODE&gt; and placed it in &lt;CODE&gt;$splunk_home\etc\apps\&amp;lt;app_name&amp;gt;\bin\&lt;/CODE&gt;, and i've added 2 stanza to &lt;CODE&gt;$splunk_home/etc/local&lt;/CODE&gt; and named it as &lt;CODE&gt;authorize.conf&lt;/CODE&gt; &amp;amp; &lt;CODE&gt;commands.conf&lt;/CODE&gt; and restarted Splunk.  &lt;/P&gt;

&lt;P&gt;However when i try to pipe it ( &lt;CODE&gt;| log&lt;/CODE&gt; ) to the custom command, they said &lt;CODE&gt;'Unknown search command'winad''&lt;/CODE&gt;  &lt;/P&gt;

&lt;P&gt;What can i do so that it will print out what I've written in the Python script&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2013 06:04:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-Search-Command/m-p/77217#M19531</guid>
      <dc:creator>sarahh</dc:creator>
      <dc:date>2013-03-28T06:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Search Command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-Search-Command/m-p/77218#M19532</link>
      <description>&lt;P&gt;Edit your question to include all the configurations you've added.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2013 11:49:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-Search-Command/m-p/77218#M19532</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-03-28T11:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Search Command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-Search-Command/m-p/77219#M19533</link>
      <description>&lt;P&gt;You need to add the section for your custom search command to commands.conf in your app's config directory, not Splunk's config directory.&lt;/P&gt;

&lt;P&gt;So try moving what you put into $SPLUNK_HOME/etc/local/commands.conf into $SPLUNK_HOME/etc/apps/&amp;lt;app_name&amp;gt;/default/commands.conf.  Then you'll have to restart Splunk for it to notice that you've changed that file.&lt;/P&gt;

&lt;P&gt;Also, by default your custom command will only be usable within the app it lives in.  If you want to be able to use it from within another app, for example the search app, you'll have to make it global by editing $SPLUNK_HOME/etc/apps/&amp;lt;app_name&amp;gt;/metadata/local.meta (or by making in global using the "Manager" screens in Splunkweb).&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2013 12:40:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-Search-Command/m-p/77219#M19533</guid>
      <dc:creator>dmr195</dc:creator>
      <dc:date>2013-04-12T12:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Search Command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-Search-Command/m-p/77220#M19534</link>
      <description>&lt;P&gt;Thanks. I had the same problem and it turned out I had forgotten to add "export=system" to default.meta in my app.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2014 22:16:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-Search-Command/m-p/77220#M19534</guid>
      <dc:creator>helge</dc:creator>
      <dc:date>2014-03-14T22:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Search Command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-Search-Command/m-p/77221#M19535</link>
      <description>&lt;P&gt;hey I have some problem .. can you tell me how to resolve this issue . and splunk want what type of python file as a custom search command.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2016 12:17:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-Search-Command/m-p/77221#M19535</guid>
      <dc:creator>erritesh17</dc:creator>
      <dc:date>2016-04-04T12:17:22Z</dc:date>
    </item>
  </channel>
</rss>

