Dashboards & Visualizations

Is there a way to authenticate once via REST API without the token expiring?

francisxavier14
Engager

Hi,

I have been looking for a solution to authenticate once and use it for ever token.
Anyone can help?

Background:
Our REST API Splunk client login into server and executes query after each test run.
But, we are having trouble in exposing our passwords in CI environment.

gblock_splunk
Splunk Employee
Splunk Employee

There is no way today. The token is temporary by design and will expire.

For sending data to Splunk we've introduced permanent tokens as part of our new HTTP Event Collector.

if you would like to see us introduce long lived tokens, please submit an idea at splunkdev.uservoice.com

jplumsdaine22
Influencer

I'm under the impression that the auth/login session token expires based on the session timeout settings (see http://docs.splunk.com/Documentation/Splunk/6.3.1/Admin/Configureusertimeouts)

I would also like to know if there's a way to generate a permanent token

0 Karma

gblock_splunk
Splunk Employee
Splunk Employee

There is no way today. The token is temporary by design and will expire.

For sending data to Splunk we've introduced permanent tokens as part of our new HTTP Event Collector.

if you would like to see us introduce long lived tokens, please submit an idea at splunkdev.uservoice.com

jplumsdaine22
Influencer

Cheers! You should probably make that an answer so the OP can close the thread

0 Karma

gblock_splunk
Splunk Employee
Splunk Employee

Good point! Done.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...