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.

Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

SOC4Kafka - New Kafka Connector Powered by OpenTelemetry

The new SOC4Kafka connector, built on OpenTelemetry, enables the collection of Kafka messages and forwards ...

Event Series: Level up your SOC: Advancing with Splunk Enterprise Security

AI has fundamentally raised the stakes for security operations, and this three-part series is your guide to ...

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...