Security

How do I limit the fields returned by Splunk's REST handlers?

LukeMurphey
Champion

I am attempting to use Splunk's REST handlers. In my case, the REST handler returns lots of fields that I don't need. This causes a lot of data to be transmitted between the browser and Splunk. Is there a way to limit the fields returned?

Tags (1)
0 Karma
1 Solution

LukeMurphey
Champion

Yes, this can be done. Use the "f" parameter to only return the field you care about. Include the parameter for each field you want if you want more than one.

Something like this:

storage/passwords?f=name&f=eai:acl&f=username&f=realm

View solution in original post

LukeMurphey
Champion

Yes, this can be done. Use the "f" parameter to only return the field you care about. Include the parameter for each field you want if you want more than one.

Something like this:

storage/passwords?f=name&f=eai:acl&f=username&f=realm
Get Updates on the Splunk Community!

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...