<?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 Do users need some capability to use search commands based on Python scripts like xmlkv? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Do-users-need-some-capability-to-use-search-commands-based-on/m-p/222732#M65492</link>
    <description>&lt;P&gt;We have users with somewhat limited capabilities using custom search home apps.&lt;BR /&gt;
They are able to search the data they should, but gets an error when trying to use python based search commands, specifically&lt;BR /&gt;
xmlkv.&lt;/P&gt;

&lt;P&gt;The search looks like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=win* host=vm-ktapp-2 LogName=Application | xmlkv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;As admin I am able to run the search, but the users get the error:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;Unknown search command 'xmlkv'.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;We are on 6.3.3 currently.&lt;/P&gt;

&lt;P&gt;I am suspecting some capability is needed to allow using the Python base search commands, but I have trouble guessing which.&lt;BR /&gt;
Anyone have an idea?&lt;/P&gt;

&lt;P&gt;The users have these capabilites now:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;accelerate_search
change_own_password
get_metadata
get_typeahead
input_file
list_inputs
output_file
pattern_detect
request_remote_tok
rest_apps_view
rest_properties_get
rest_properties_set
schedule_rtsearch
search
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 11 Aug 2016 13:42:33 GMT</pubDate>
    <dc:creator>ivarny</dc:creator>
    <dc:date>2016-08-11T13:42:33Z</dc:date>
    <item>
      <title>Do users need some capability to use search commands based on Python scripts like xmlkv?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Do-users-need-some-capability-to-use-search-commands-based-on/m-p/222732#M65492</link>
      <description>&lt;P&gt;We have users with somewhat limited capabilities using custom search home apps.&lt;BR /&gt;
They are able to search the data they should, but gets an error when trying to use python based search commands, specifically&lt;BR /&gt;
xmlkv.&lt;/P&gt;

&lt;P&gt;The search looks like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=win* host=vm-ktapp-2 LogName=Application | xmlkv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;As admin I am able to run the search, but the users get the error:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;Unknown search command 'xmlkv'.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;We are on 6.3.3 currently.&lt;/P&gt;

&lt;P&gt;I am suspecting some capability is needed to allow using the Python base search commands, but I have trouble guessing which.&lt;BR /&gt;
Anyone have an idea?&lt;/P&gt;

&lt;P&gt;The users have these capabilites now:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;accelerate_search
change_own_password
get_metadata
get_typeahead
input_file
list_inputs
output_file
pattern_detect
request_remote_tok
rest_apps_view
rest_properties_get
rest_properties_set
schedule_rtsearch
search
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Aug 2016 13:42:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Do-users-need-some-capability-to-use-search-commands-based-on/m-p/222732#M65492</guid>
      <dc:creator>ivarny</dc:creator>
      <dc:date>2016-08-11T13:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: Do users need some capability to use search commands based on Python scripts like xmlkv?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Do-users-need-some-capability-to-use-search-commands-based-on/m-p/222733#M65493</link>
      <description>&lt;P&gt;Have you checked the file permission on the .py?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2016 14:48:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Do-users-need-some-capability-to-use-search-commands-based-on/m-p/222733#M65493</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-08-11T14:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Do users need some capability to use search commands based on Python scripts like xmlkv?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Do-users-need-some-capability-to-use-search-commands-based-on/m-p/222734#M65494</link>
      <description>&lt;P&gt;Yes, owned by splunk and r-x for all so that's not it. One interesting thing is that it exists only in ~/etc/apps/search/bin. So I tried copying it into the /bin folder of our custom app, but nothing changed, so I think that is also barking up the wrong tree. Therefore I think it must be some missing capability for these users.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2016 14:57:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Do-users-need-some-capability-to-use-search-commands-based-on/m-p/222734#M65494</guid>
      <dc:creator>ivarny</dc:creator>
      <dc:date>2016-08-11T14:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: Do users need some capability to use search commands based on Python scripts like xmlkv?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Do-users-need-some-capability-to-use-search-commands-based-on/m-p/222735#M65495</link>
      <description>&lt;P&gt;most scripted commands are available under SPLUNK_HOME/etc/apps/search/bin including xmlkv.py. So ensure your user role is readable on default search&amp;amp;reporting app. If you do not want user to use default search app then copy xmlkv.py to your custom search home app bin directory.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2016 15:57:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Do-users-need-some-capability-to-use-search-commands-based-on/m-p/222735#M65495</guid>
      <dc:creator>sgundeti</dc:creator>
      <dc:date>2016-09-14T15:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: Do users need some capability to use search commands based on Python scripts like xmlkv?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Do-users-need-some-capability-to-use-search-commands-based-on/m-p/222736#M65496</link>
      <description>&lt;P&gt;I had tested copying xmlkv.py to the home app of the user(s) but that did not solve it.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2016 11:11:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Do-users-need-some-capability-to-use-search-commands-based-on/m-p/222736#M65496</guid>
      <dc:creator>ivarny</dc:creator>
      <dc:date>2016-09-20T11:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Do users need some capability to use search commands based on Python scripts like xmlkv?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Do-users-need-some-capability-to-use-search-commands-based-on/m-p/222737#M65497</link>
      <description>&lt;P&gt;The solution to this was to find in the local.meta permissions setup.&lt;/P&gt;

&lt;P&gt;We wanted a general locked down approach and open up on the specific level.&lt;BR /&gt;
This does not seem to be supported as the general settings overrides the more specific settings.&lt;/P&gt;

&lt;P&gt;We had in &lt;CODE&gt;./apps/search/metadata/local.meta&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[] 
access= read [ admin ], write [ admin ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;then for commands we wanted to grant access&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;But this did not work since the &lt;CODE&gt;[]&lt;/CODE&gt; stanza overrules the &lt;CODE&gt;[commands]&lt;/CODE&gt; stanza.&lt;/P&gt;

&lt;P&gt;Therefore we had to put &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[]
access = read : [ * ], write : [ admin ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And then tighten in on each more specific stanza...&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2016 11:19:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Do-users-need-some-capability-to-use-search-commands-based-on/m-p/222737#M65497</guid>
      <dc:creator>ivarny</dc:creator>
      <dc:date>2016-09-20T11:19:44Z</dc:date>
    </item>
  </channel>
</rss>

