Splunk Search

'Unknown search command 'return' in a new app

daniel_splunk
Splunk Employee
Splunk Employee

Setup a new role for a specific app with below configuration.

[role_demo]
rest_properties_get = enabled
search = enabled

When run a search that use the return command, it prompt the following error.
'Unknown search command 'return'

If I login as admin and run the same search, it run fine and don't have any error.

Tags (1)
1 Solution

daniel_splunk
Splunk Employee
Splunk Employee

It is because the custom search command (return) is in the search app, the new role role_demo needs read access to the search app.

Go to Manager > Apps > Search > Permissions and then grant the read permission to role_demo to fox this.

View solution in original post

daniel_splunk
Splunk Employee
Splunk Employee

It is because the custom search command (return) is in the search app, the new role role_demo needs read access to the search app.

Go to Manager > Apps > Search > Permissions and then grant the read permission to role_demo to fox this.

Get Updates on the Splunk Community!

Upcoming Webinar: Unmasking Insider Threats with Slunk Enterprise Security’s UEBA

Join us on Wed, Dec 10. at 10AM PST / 1PM EST for a live webinar and demo with Splunk experts! Discover how ...

.conf25 technical session recap of Observability for Gen AI: Monitoring LLM ...

If you’re unfamiliar, .conf is Splunk’s premier event where the Splunk community, customers, partners, and ...

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...