Which Splunk versions require a service restart for HEC token revocation to take effect?
0 reputation · 02 Mar 2024, 06:58 UTC
0 reputation · 02 Mar 2024, 06:58 UTC
When validating an integration against a non-production Splunk instance, teams often create dedicated HEC tokens, send test events, then revoke the token to confirm rejection. The documentation indicates that revocation takes effect only after the next authentication handshake, creating a window where events may still be accepted. This latency varies by release, and older versions reportedly require a full service restart before the revocation is honored.
There is no supported REST endpoint to query the current revocation state of a token; administrators must inspect the splunkd index for evidence of token usage or rejection. If that index is disabled or aggressively rotated, the audit trail disappears, making it difficult to verify that revocation has propagated.
Understanding exactly which Splunk Enterprise versions enforce immediate rejection versus which demand a restart is essential for designing reliable integration tests that do not depend on production credentials.
splunkd index without enabling additional debug logging?30775 reputation · 02 Mar 2024, 11:35 UTC
No Splunk Enterprise release that includes the HTTP Event Collector (HEC) requires a service restart for HEC token revocation to become effective. The revocation is applied to the in‑memory token table instantly and is honored for all new authentication handshakes.
disabled=1 on a token via the /services/data/inputs/http/:token_name endpoint updates the token table without needing a restart.The only latency observed after revocation stems from existing keep‑alive or pooled HTTP connections that may continue to use the old token until those connections are closed or refreshed. New connections (or forced connection closures) see the updated token state immediately.
curl -k -u admin:changeme https://localhost:8089/services/data/inputs/http/my_test_token with appropriate POST to create).curl -k -u admin:changeme -X POST https://localhost:8089/services/data/inputs/http/my_test_token -d "disabled=1")._internal index for messages like Token validation failed to see revocation enforcement.Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.