Dashboards & Visualizations

splunk-sdk-javascript services.js examples: is there more documentation someplace?

terryloar
Path Finder

I've been using the @examples in splunk-sdk-javascript/lib/service.js and have used many of them successfully. Some however, are giving me a problem, such as dispatching a saved search. To generalize, the options lists are not available except for the few that are shown in the examples. Where does one find these?

For example, on line 1472 the dispatch: shows {force:dispatch: false}. This throws a syntax error.

Another example, on line 3021 for the search: options it shows {id: "myjob_123"}, but what other options are available in the Javascript SDK?

Thanks

0 Karma

ChrisG
Splunk Employee
Splunk Employee

See docs.splunk.com for the JavaScript SDK Reference. The Splunk developer portal (dev.splunk.com) also has a how-to topic for searching with the JavaScript SDK.

0 Karma
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!

Kick the Tires Before You Commit: A Hands-On Tour of the Splunk Observability Cloud ...

Evaluating an enterprise observability platform usually goes like this: fill out a form, get a free trial with ...

Deep insights, no barriers: Splunk Observability Cloud Free Edition

As software delivery cycles continue to accelerate, observability shouldn’t be a luxury — it should be a ...

Monitoring AI Agents with Splunk Observability Cloud

Let’s say I’m running a travel planning AI app in production. A user asks for three concise hotel options in ...