All Apps and Add-ons

Is there a way to configure the Splunk PowerShell Resource Kit, SplunkdUser function to return more than 30 results?

marwall
New Member

When I connect to a server and retrieve the list of users using the SplunkdUser function of the Splunk PowerShell Resource Kit, it only return 30 oft 500+ users.

Tags (1)
0 Karma
1 Solution

ahacsplk
Engager

Apparently not. The underlying REST API supports changing the default (30) but I don't see a -Count option in this cmdlet like some of the others (e.g., Get-SplunkApplication).

If you have a little PS background and are so inclined: Looks like it would not be difficult to add. I'd suggest starting by looking at the $restArgs hash in the Get-SplunkApplication function.

View solution in original post

0 Karma

ahacsplk
Engager

Apparently not. The underlying REST API supports changing the default (30) but I don't see a -Count option in this cmdlet like some of the others (e.g., Get-SplunkApplication).

If you have a little PS background and are so inclined: Looks like it would not be difficult to add. I'd suggest starting by looking at the $restArgs hash in the Get-SplunkApplication function.

0 Karma

marwall
New Member

I was able to modify the function based on your recommendation and it returned all of the expected results.
Thank You!

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...