With an Enterprise license, Dgraph can generate audit logs that let you track and audit all requests (queries and mutations).
/health
, /state
and /jemalloc
endpointsCheck
and Watch
)StreamMembership
,
UpdateMembership
, Oracle
, Timestamps
, ShouldServe
and Connect
)--audit
flag to specify semicolon-separated options for audit logging. When
you enable audit logging, a few options are available for you to configure:
compress=true
tells Dgraph to use compression on older audit log filesdays=20
tells Dgraph to retain older audit logs for 20 days, rather than the
default of 10 daysoutput=/path/to/audit/logs
tells Dgraph which path to use for storing audit
logsencrypt-file=/encryption/key/path
tells Dgraph to encrypt older log files
with the specified keysize=200
tells Dgraph to store audit logs in 200 MB files, rather than the
default of 100 MB filesdgraph audit decrypt
command,
as follows: