Latest version: 4.3.x
Audits
Lenses records and stores audit logs of every change made on the platform. Whenever users do actions like: adding topic / editing connection / inserting data etc. there will be proof of that action in the form of an audit log.
Navigate to audit logs
- From the header bar menu, go to Admin panel.
- On the side navigation, select Logs under the audits section.
There is a possibility of sending audits to external system. Check links below.
Audit log
Audit log has following external format:
{
"type":"",
"action":"",
"user":"",
"timestamp":1627456619536,
"resourceId": "",
"resourceName": "",
"content": {}
}
Where:
-
type
- describes a resource of the change made by the user. -
action
- describes an action made on the resource (type
). -
user
- one performing the action. -
timestamp
- timestamp (ms) of the action. -
resourceId
- optional field relevant only for some actions (i.e., name of the topic in case of an action performed on the topic). -
resourceName
- optional field relevant only for some actions (i.e., name of the schema in case of an action performed on the schema registry). Often has the same value asresourceId
. -
content
- map with additional data. Content heavily depends on resource, but often is empty.
Resource x Action matrix
The amount of unique audit logs produced by Lenses can cause confusion, so below we present complete permutation of resources and action Lenses tracks on:
- TOPIC: ADD / REMOVE / UPDATE
- TOPIC_REQUEST: REJECTED / FAILED / APPROVED / REQUESTED
- TOPIC_DATA: REMOVE / INSERT / UPDATE
- DATASET: VIEWED / UPDATE
- QUOTAS: ADD / REMOVE
- ACL: ADD / REMOVE
- SCHEMA: REMOVE / ADD / UPDATE
- PROCESSOR: ADD / REMOVE / STOPPED / STARTED / SCALED
- CONNECTOR: REMOVE / RESTARTED / ADD / PAUSED / UPDATE / STARTED
- CONSUMER_OFFSET: UPDATE
- DATA_POLICIES: ADD / UPDATE / REMOVE
- USER_MANAGEMENT_GROUP: ADD / UPDATE / REMOVE
- USER_MANAGEMENT_USER: ADD / UPDATE / REMOVE
- USER_MANAGEMENT_SERVICE_ACCOUNT: ADD / UPDATE / REMOVE
- LENSES: REMOVE
- USER: LOGIN / LOGOUT
- CONNECTION: ADD / VIEWED / REMOVE / UPDATE
- ALERT_EVENT: REMOVE
- ALERT_RULE: STARTED / STOPPED / UPDATE / ADD / REMOVE
- ALERT_CHANNEL: ADD / UPDATE / PATCH / REMOVE
- AUDIT_CHANNEL: ADD / UPDATE / PATCH / REMOVE
- EXTERNAL_APP: ADD / UPDATE / REMOVE
- TOPIC_SETTINGS: UPDATE
Notes:
LENSES: REMOVE - audit logged when user deletes old audit logs (API / CLI).
ALERT_EVENT: REMOVE - audit logged when user deletes old alert events (API / CLI).