The error occurs when the checkpoint for "cloudappsecuritytoken" becomes corrupted or misconfigured, leading to a failure in decrypting credentials.
The specific error "KeyError: 'cloudappsecuritytoken'" highlights an issue with the token in the tenant configuration.
Although the token is not required for Management Activity inputs, its corruption interferes with the authentication process and results in failed data collection.
Use the following SPL query to identify errors in internal logs:
index=_internal *O365* log_level=ERROR
Error Logs:
12-09-2024 18:53:23.477 +0000 ERROR AdminManagerExternal [1241679 TcpChannelThread] - Stack trace from python handler:\nTraceback (most recent call last):\n... KeyError: 'cloudappsecuritytoken'
The error indicates a corrupted or missing "cloudappsecuritytoken" checkpoint, which disrupts the decryption process for credentials.
This issue arises during API authentication for Management Activity data collection, often following an upgrade.
To resolve the issue, follow these steps:
index=your_index_name sourcetype="o365:management_activity"
By removing the unnecessary token and refreshing the client secret, the Splunk Add-on for Microsoft Office 365 should resume proper data collection without further errors.
Management Activity input creation documentation
| Revision | Publish Date | Comments |
|---|---|---|
1.0 |
29-Sep-2026
|
Initial Release |