Splunk Enterprise

How configure idle time timeout in splunk web?

imam29
Explorer

How to set idle time, when the user has no activity for a long time, for example 15 minutes, then splunkweb will ask to log in again 

Labels (2)
Tags (1)
0 Karma
1 Solution

livehybrid
Champion

Hi @imam29 

Just to check, have you restarted Splunk since making this change?

Its also worth considering the following from the docs - How long did you wait to check for a timeout? What is your tools.sessions.timeout set to?

The countdown for the splunkweb/splunkd session timeout does not begin until the browser session reaches its timeout value. So, to determine how long the user has before timeout, add the value of ui_inactivity_timeout to the smaller of the timeout values for splunkweb and splunkd. For example, assume the following:

splunkweb timeout: 15m
splunkd timeout: 20m
browser (ui_inactivity_timeout) timeout: 10m
The user session stays active for 25 minutes (15m+10m). After 25 minutes of no activity, the session ends, and the instance prompts the user to log in again the next time they send a network request to the instance.

Please let me know how you get on and consider adding karma to this or any other answer if it has helped.
Regards

Will

View solution in original post

0 Karma

imam29
Explorer

after we add tools.sessions.timeout , it is work 

Thank you 

imam29
Explorer

where is setting splunkweb timeout and splunkd timeout ? we only set in web.conf 

imam29_0-1741772860206.jpeg

 

0 Karma

livehybrid
Champion

HI @imam29 

In this case, I would expect the timeout to be after 30 minutes of no activity in the UI.

The other timeout option is in server.conf/[general]/sessionTimeout - 

See https://docs.splunk.com/Documentation/Splunk/latest/Admin/Serverconf?_gl=1*homgau*_ga*NzI2Njg4NjMzLj...

 

The ui_inactivity_timeout is the amount of minutes when there is no user interface clicking, mouseover, scrolling, or resizing. * Notifies client side pollers to stop, resulting in sessions expiring at the 'tools.sessions.timeout' value, so any mouseover, scrolling etc on the browser will reset this timer.

Just to check, have you restarted since making these changes? 

Please let me know how you get on and consider adding karma to this or any other answer if it has helped.
Regards

Will

 

0 Karma

livehybrid
Champion

Hi @imam29 

It sounds like you'll need to update the ui_inactivity_timeout setting under web.conf/[settings] which is the timeout for when the user does not interact with the browser, but there is also another setting "tools.sessions.timeout" which is the actual session timeout value. 

However, I think it would be worth reading this doc about setting session timeout so that you can satisfy yourself that you are updating the correct setting and not being overly permissive with timeouts.

https://docs.splunk.com/Documentation/Splunk/9.4.0/Admin/Configureusertimeouts#:~:text=In%20addition....

In addition to managing in the config files, you can also update this in the UI if preferred:

  1. Click Settings in the upper right-hand corner of Splunk Web.
  2. Under System, click Server settings.
  3. Click General settings.
  4. In the Session timeout field, enter a timeout value.
  5. Click Save.

Please let me know how you get on and consider adding karma to this or any other answer if it has helped.
Regards

Will

 

 

0 Karma

imam29
Explorer

I has been configure ui_inactivity_timeout = 15 but not working , the session still there not ask login again 

0 Karma

livehybrid
Champion

Hi @imam29 

Just to check, have you restarted Splunk since making this change?

Its also worth considering the following from the docs - How long did you wait to check for a timeout? What is your tools.sessions.timeout set to?

The countdown for the splunkweb/splunkd session timeout does not begin until the browser session reaches its timeout value. So, to determine how long the user has before timeout, add the value of ui_inactivity_timeout to the smaller of the timeout values for splunkweb and splunkd. For example, assume the following:

splunkweb timeout: 15m
splunkd timeout: 20m
browser (ui_inactivity_timeout) timeout: 10m
The user session stays active for 25 minutes (15m+10m). After 25 minutes of no activity, the session ends, and the instance prompts the user to log in again the next time they send a network request to the instance.

Please let me know how you get on and consider adding karma to this or any other answer if it has helped.
Regards

Will

0 Karma
Get Updates on the Splunk Community!

Uncovering Multi-Account Fraud with Splunk Banking Analytics

Last month, I met with a Senior Fraud Analyst at a nationally recognized bank to discuss their recent success ...

Secure Your Future: A Deep Dive into the Compliance and Security Enhancements for the ...

What has been announced?  In the blog, “Preparing your Splunk Environment for OpensSSL3,”we announced the ...

New This Month in Splunk Observability Cloud - Synthetic Monitoring updates, UI ...

This month, we’re delivering several platform, infrastructure, application and digital experience monitoring ...