<?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: How to make a custom command shared between all Apps? in Security</title>
    <link>https://community.splunk.com/t5/Security/How-to-make-a-custom-command-shared-between-all-Apps/m-p/635325#M16629</link>
    <description>&lt;P&gt;This may be an answer 6 years later (almost to the date), but thought I'd post for future visitors. I was searching this today and found some info in Splunk dev docs:&lt;/P&gt;&lt;P&gt;&lt;A href="https://dev.splunk.com/enterprise/docs/devtools/customsearchcommands/manageaccesstocustom/#Make-a-custom-search-command-available-system-wide" target="_blank" rel="noopener"&gt;Splunk Dev - Manage access to a custom search command in Splunk Cloud Platform or Splunk Enterprise&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure if .meta allows all commands to be controlled via the stanza like in the original question, but each command can be added using the following:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[commands/command_name]
access = read : [ * ], write : [ admin ]
export = system&lt;/LI-CODE&gt;&lt;P&gt;Seems like it requires a stanza per command and doesn't allow mass command sharing.&amp;nbsp; The comment from MuS seems to be the other option for mass sharing, but exports all objects in the app.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Mar 2023 13:44:32 GMT</pubDate>
    <dc:creator>Maurice_Moss</dc:creator>
    <dc:date>2023-03-21T13:44:32Z</dc:date>
    <item>
      <title>How to make a custom command shared between all Apps?</title>
      <link>https://community.splunk.com/t5/Security/How-to-make-a-custom-command-shared-between-all-Apps/m-p/361406#M9061</link>
      <description>&lt;P&gt;Hi fellow Splunkers,&lt;/P&gt;

&lt;P&gt;I'm wondering is someone can tell me how to share a custom command stored within a custom App globally?  We have a custom script that takes input, processes it and returns data.  I've tried a few things in order to make the command shared globally since we need to run this command within various apps.  I get the following error regardless of what we add to the commands or meta files: "Search Factory: Unknown search command scriptNameHere" (restarted the service after every change).  The App permissions are set to global which I thought would make the command work within any other app, but that doesn't seem to be the case.&lt;/P&gt;

&lt;P&gt;Here is what I tried adding to my default.meta. Within my commands.conf file I have 4 custom scripts, I'd like to either make them all global or define the specific command we need to work in all other apps.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[commands]
access = read : [ * ], write : [ admin ]
export = system
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any help would be greatly appreciated. &lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2017 16:47:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-make-a-custom-command-shared-between-all-Apps/m-p/361406#M9061</guid>
      <dc:creator>splunker1981</dc:creator>
      <dc:date>2017-03-20T16:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a custom command shared between all Apps?</title>
      <link>https://community.splunk.com/t5/Security/How-to-make-a-custom-command-shared-between-all-Apps/m-p/361407#M9062</link>
      <description>&lt;P&gt;Hi splunker1981,&lt;/P&gt;

&lt;P&gt;If I create a custom command in a TA, I add this to the &lt;CODE&gt;metadata/default.meta&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[]
access = read : [ * ], write : [ admin ]
export = system
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and it worked all the times so far.&lt;/P&gt;

&lt;P&gt;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2017 00:18:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-make-a-custom-command-shared-between-all-Apps/m-p/361407#M9062</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2017-03-22T00:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a custom command shared between all Apps?</title>
      <link>https://community.splunk.com/t5/Security/How-to-make-a-custom-command-shared-between-all-Apps/m-p/635325#M16629</link>
      <description>&lt;P&gt;This may be an answer 6 years later (almost to the date), but thought I'd post for future visitors. I was searching this today and found some info in Splunk dev docs:&lt;/P&gt;&lt;P&gt;&lt;A href="https://dev.splunk.com/enterprise/docs/devtools/customsearchcommands/manageaccesstocustom/#Make-a-custom-search-command-available-system-wide" target="_blank" rel="noopener"&gt;Splunk Dev - Manage access to a custom search command in Splunk Cloud Platform or Splunk Enterprise&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure if .meta allows all commands to be controlled via the stanza like in the original question, but each command can be added using the following:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[commands/command_name]
access = read : [ * ], write : [ admin ]
export = system&lt;/LI-CODE&gt;&lt;P&gt;Seems like it requires a stanza per command and doesn't allow mass command sharing.&amp;nbsp; The comment from MuS seems to be the other option for mass sharing, but exports all objects in the app.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 13:44:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-make-a-custom-command-shared-between-all-Apps/m-p/635325#M16629</guid>
      <dc:creator>Maurice_Moss</dc:creator>
      <dc:date>2023-03-21T13:44:32Z</dc:date>
    </item>
  </channel>
</rss>

