Audit Logs

Audit logs allow you to get insights into all actions taken in Scalr, who performed the action, how it was done, and more. Scalr currently supports the streaming of logs to Datadog, but more destinations are being worked on.


The audit log feature can use the same Datadog connection that is used for events or a new one can be created.

To enable audit logs, go to the account settings page and click on audit logs. Enable the streaming of logs, select Datadog as the destination, and add the connection:

You will now see the Scalr logs in the Datadog logs feature:

Here is an example of a full log output:

	"content": {
		"timestamp": "2024-02-16T12:58:38.577Z",
		"tags": [
			"scalr-user-email:[email protected]",
		"host": "",
		"service": "audit-log",
		"attributes": {
			"actor": {
				"id": "user-stp8qjepev3a123",
				"access-token": {
					"type": "session",
					"token": "...B6wifA"
				"type": "user",
				"email": "[email protected]"
			"request": {
				"ip-address": "",
				"action": "discard-run",
				"id": "a3a473d725c730382558c25d52bd1234",
				"source": "ui",
				"user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36"
			"hostname": "",
			"service": "audit-log",
			"outcome": {
				"result": "SUCCESS",
				"status-code": 202
			"target": {
				"display-name": "run-v0o370pcff0e53123",
				"context": {
					"environment": {
						"display-name": "CS-M",
						"id": "org-sscctbkdgkdrqg0"
					"workspace": {
						"display-name": "demo-ws",
						"id": "ws-v0o370ouv5kbjmk9h"
					"account": {
						"display-name": "docs",
						"id": "acc-sscctbisjkl3123"
				"id": "run-v0o370pcff0e53",
				"type": "runs"
			"timestamp": "2024-02-16T12:58:38.577846"