Splunk Dev

Why is the Rest API for getting saved searches giving different number of results?

VatsalJagani
SplunkTrust
SplunkTrust

When trying to access saved-searches from python request, not giving actual no of saved searches, many saved searches are missing.

| rest servicesNS/-/-/saved/searches

While accessing the above command from a search bar giving the correct result.

Why are some saved searches not showing while accessing through python requests module? ( I'm accessing with same URL and same user.)

0 Karma

p_gurav
Champion

Hi,

Can you try something like this:

| rest servicesNS/-/-/saved/searches splunk_server=local

Also refer this docs:
http://dev.splunk.com/view/python-sdk/SP-CAAAEK2

0 Karma

VatsalJagani
SplunkTrust
SplunkTrust

I also tried this, but when I try it with search it is giving 138 result, but when I try with python I'm getting 30 result. (138 looks correct).

0 Karma

p_gurav
Champion
0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...