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!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...