Extend the Wazuh Dashboard Session Timeout — v18
Scope: Wazuh Dashboard 4.14.5 in the Alerts to Answers lab. Verify the installed values before changing them.
Purpose
Increase the Wazuh Dashboard session and authentication-cookie time-to-live values to eight hours for an instructor-approved lab environment.
Security impact: A longer session remains usable for longer if a workstation is left unlocked or a browser session is compromised. Use this setting only where it matches institutional policy. Lock the workstation when unattended and do not apply this change to production without approval.
1. Back Up the Configuration
sudo cp -a /etc/wazuh-dashboard/opensearch_dashboards.yml \
/etc/wazuh-dashboard/opensearch_dashboards.yml.v18-before-session-change
sudo ls -l /etc/wazuh-dashboard/opensearch_dashboards.yml*2. Inspect the Installed Values
sudo grep -nE '^opensearch_security\.(cookie|session)\.' \
/etc/wazuh-dashboard/opensearch_dashboards.ymlWazuh 4.14.x package configurations commonly contain:
opensearch_security.cookie.ttl: 900000
opensearch_security.session.ttl: 900000
opensearch_security.session.keepalive: trueDo not assume those values are present. Record the actual settings so they can be restored.
3. Set an Eight-Hour TTL
Eight hours is 28,800,000 milliseconds.
sudo nano /etc/wazuh-dashboard/opensearch_dashboards.ymlSet or update:
opensearch_security.cookie.ttl: 28800000
opensearch_security.session.ttl: 28800000
opensearch_security.session.keepalive: truesession.keepalive: true resets the session TTL when the user is active. It does not guarantee that a session will survive closing the browser or an upstream identity-provider timeout.
4. Restart and Verify the Dashboard
sudo systemctl restart wazuh-dashboard
sudo systemctl --no-pager --full status wazuh-dashboard
sudo journalctl -u wazuh-dashboard -n 50 --no-pagerThe service must report active (running) and the journal must not show a configuration-parsing failure. Only the Dashboard service requires restart for this file change.
5. Validate the Result
- Sign in to the Wazuh Dashboard.
- Confirm normal navigation and searches work.
- Keep the browser session open and verify it remains active for the institutionally approved test period.
- Record the change, test time, result, and operator.
Rollback
sudo cp -a /etc/wazuh-dashboard/opensearch_dashboards.yml.v18-before-session-change \
/etc/wazuh-dashboard/opensearch_dashboards.yml
sudo systemctl restart wazuh-dashboard
sudo systemctl --no-pager --full status wazuh-dashboardTechnical References
- Wazuh Dashboard installation and configuration: https://documentation.wazuh.com/current/installation-guide/wazuh-dashboard/step-by-step.html
- OpenSearch session TTL and keepalive settings: https://docs.opensearch.org/latest/install-and-configure/install-dashboards/tls/
- Wazuh Dashboard 4.14 release configuration evidence: https://github.com/wazuh/wazuh/issues/32749