Overview
This page lists the fields of SigNoz audit logs and the rules that decide when an audit log is recorded. Use the fields in filter.expression and groupBy of an audit logs query.
Audit logs follow the SigNoz semantic conventions. For the full schema, see the audit semantic conventions.
Fields
Write field names as shown, without a prefix. For example, signoz.resource.kind = 'dashboard'.
Operation
| Field | Description | Values |
|---|---|---|
signoz.audit.verb | The operation. | create, update, delete, attach, detach |
signoz.audit.outcome | Whether the operation succeeded. An HTTP response with a 2xx or 3xx status code is a success. | success, failure |
signoz.audit.action_category | The kind of change. | access_control for changes to who can do what, such as roles, users, service accounts, and keys. configuration_changes for other changes, such as dashboards and alerts. |
event_name | The operation as an event name. | signoz.audit.<verb>, for example signoz.audit.delete |
body | A readable summary of the change, returned as body.message. To search it, use CONTAINS, for example body CONTAINS 'deleted dashboard'. | For example, jane@example.com (019e7346-...) deleted dashboard (01a20d00-...) |
severity_text | INFO for a success, ERROR for a failure. | INFO, ERROR |
Who made the change
| Field | Description | Values |
|---|---|---|
signoz.principal.id | The ID of the user or service account. | |
signoz.principal.email | The email of the user or service account. A service account's email is <service-account-name>@signozserviceaccount.com. | |
signoz.principal.type | The kind of principal. | user, service_account |
signoz.principal.identn.provider | How the principal signed in. | tokenizer for a signed-in session, api_key for an API key, impersonation for impersonation mode |
signoz.organization.id | The ID of your SigNoz organization. |
What changed
| Field | Description | Values |
|---|---|---|
signoz.resource.kind | The kind of resource. | See Resource kinds. |
signoz.resource.id | The ID of the resource. Empty when a create fails, because no resource was created. | |
signoz.resource.target.kind | For attach and detach, the kind of the other resource. | |
signoz.resource.target.id | For attach and detach, the ID of the other resource. |
Where the change came from
| Field | Description |
|---|---|
client.address | The IP address of the client. When the request passed through a proxy, the first address in the X-Forwarded-For header. |
user_agent.original | The User-Agent header of the request, such as a browser or curl/8.7.1. |
http.request.method | The HTTP method, such as POST or DELETE. |
http.route | The API route, such as /api/v2/dashboards/{id}. |
http.response.status_code | The HTTP status code of the response. |
exception.type | For a failure, the type of error, such as forbidden or invalid-input. |
Resource kinds
Common values of signoz.resource.kind:
| Kind | Resource |
|---|---|
dashboard | Dashboards |
rule | Alert rules |
notification-channel | Notification channels |
planned-maintenance | Planned maintenance windows |
saved-view | Saved views |
role | Roles |
user | Users |
serviceaccount | Service accounts |
factor-api-key | API keys |
session | Sign-in sessions |
auth-domain | SSO settings |
ingestion-key | Ingestion keys |
cloud-integration | Cloud integration accounts |
org-preference | Workspace settings |
To list every kind recorded in your workspace, run a scalar query that counts audit logs grouped by signoz.resource.kind:
{
"name": "A",
"signal": "logs",
"source": "audit",
"aggregations": [{ "expression": "count()" }],
"groupBy": [{ "name": "signoz.resource.kind" }]
}Recording rules
- Changes only. SigNoz records
create,update,delete,attach, anddetach. Reads and lists are not recorded. - Signed-in callers only. Requests made before sign-in, such as login attempts, are not recorded.
- Failures are recorded. A change that SigNoz rejects, for missing permission or invalid input, is recorded with
signoz.audit.outcome = 'failure'. - Links between peers are recorded twice. When two resources that do not own each other are linked, such as a role and a service account, SigNoz records the attach or detach once from each side. Each audit log describes one side in
signoz.resource.*and the other side insignoz.resource.target.*. When one resource owns the other, such as a service account and its API key, it is recorded once. - Retention is 180 days. Audit logs older than 180 days are deleted. You cannot change this period in SigNoz. To keep audit logs longer, see Retention.