More than 100 results using the search-job API in Splunk

If you’re using the @splunk/search-job API and want to return more than the 100 results (the default value), you’ll have to pass count to the getResults function, e.g.: new SearchJob.create({ search: myQuery, }).getResults({ count: 500 });

December 14, 2021 · 1 min · admin

Mapping types using the Splunk search-job API

In case you’re using the @splunk/search-job API you might find it annoying that the properties of the returned objects are all of type string. To fix this, I wrote a little type mapper (The unit test shows how to use it):

December 9, 2021 · 1 min · admin

Using the Dashboard API from a Splunk visualization

How to use the Dashboard API from a Splunk visualization (e.g. to reload the datasource):

November 25, 2021 · 1 min · admin

Connect a datasource to a Splunk visualization

How to programmatically connect a search datasource to a Splunk visualization (without using the dashboard):

November 24, 2021 · 1 min · admin

Run any React app as a Splunk app

If you want to run any React app (any React version, any toolkit) as a Splunk app, have a look at this gist:

November 23, 2021 · 1 min · admin