Getting Data In

is it possible to set up a script which logs in to Splunk automatically and performs a saved search or runs a query?

Abilan1
Path Finder

Hi,

is it possible to set up a script which logs in to Splunk automatically and performs a saved search or runs a query?

Regards,
Abilan

0 Karma

jtrucks
Splunk Employee
Splunk Employee

You can do this in a variety of ways, but using the REST API is likely your best approach.

Read http://docs.splunk.com/Documentation/Splunk/6.2.3/RESTUM/RESTusing#Authentication and http://docs.splunk.com/Documentation/Splunk/6.2.3/RESTTUT/RESTsearches.

--
Jesse Trucks
Minister of Magic

Abilan1
Path Finder

thank you, will check from my side..!!

Regards,
Abilan

0 Karma
Get Updates on the Splunk Community!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...