Returns fatal, error, warning or info log messages from the server’s global log.
The result is a JSON object with the following properties:
total: the total amount of log entries before pagination
messages: an array with log messages that matched the criteria
This API can be turned off via the startup option --log.api-enabled. In case
the API is disabled, all requests will be responded to with HTTP 403. If the
API is enabled, accessing it requires admin privileges, or a
superuser JWT, depending on
the value of the --log.api-enabled startup option.
Path Parameters
Query Parameters
upto(default: info)
Returns all log entries up to log level upto. Note that upto must be:
fatal or 0
error or 1
warning or 2
info or 3
debug or 4
trace or 5
levelstring
Returns all log entries of log level level. Note that the query parameters
upto and level are mutually exclusive.
startnumber (default: 0)
Returns all log entries such that their log entry identifier (id value)
is greater or equal to start.
sizenumber
Restricts the result to at most size log entries.
offsetnumber (default: 0)
Starts to return log entries skipping the first offset log entries. offset
and size can be used for pagination.
searchstring
Only return the log entries containing the text specified in search.
sortstring (default: asc)
Sort the log entries either ascending (if sort is asc) or descending
(if sort is desc) according to their id values. Note that the id
imposes a chronological order.
serverIdstring
Returns all log entries of the specified server. All other query parameters
remain valid. If no serverId is given, the asked server
will reply. This parameter is only meaningful on Coordinators.
HTTP Headers
Responses
200OK
is returned if the request is valid.
400Bad Request
is returned if invalid values are specified for upto or level.
403Forbidden
is returned if there are insufficient privileges to access the logs.
Get the global server logs (deprecated)
GEThttp://<EXTERNAL_ENDPOINT>:8529/_admin/log
Warning:
This endpoint should no longer be used. It is deprecated from version 3.8.0 on.
Use /_admin/log/entries instead, which provides the same data in a more
intuitive and easier to process format.
Returns fatal, error, warning or info log messages from the server’s global log.
The result is a JSON object with the attributes described below.
This API can be turned off via the startup option --log.api-enabled. In case
the API is disabled, all requests will be responded to with HTTP 403. If the
API is enabled, accessing it requires admin privileges, or a
superuser JWT, depending on
the value of the --log.api-enabled startup option.
Path Parameters
Query Parameters
upto(default: info)
Returns all log entries up to log level upto. Note that upto must be:
fatal or 0
error or 1
warning or 2
info or 3
debug or 4
trace or 5
levelstring
Returns all log entries of log level level. Note that the query parameters
upto and level are mutually exclusive.
startnumber (default: 0)
Returns all log entries such that their log entry identifier (lid value)
is greater or equal to start.
sizenumber
Restricts the result to at most size log entries.
offsetnumber (default: 0)
Starts to return log entries skipping the first offset log entries. offset
and size can be used for pagination.
searchstring
Only return the log entries containing the text specified in search.
sortstring (default: asc)
Sort the log entries either ascending (if sort is asc) or descending
(if sort is desc) according to their lid values. Note that the lid
imposes a chronological order.
serverIdstring
Returns all log entries of the specified server. All other query parameters
remain valid. If no serverId is given, the asked server
will reply. This parameter is only meaningful on Coordinators.
HTTP Headers
Responses
200OK
Response Body application/jsonobject
levelstring
A list of the log levels for all log entries.
lidarray of strings
a list of log entry identifiers. Each log message is uniquely
identified by its @LIT{lid} and the identifiers are in ascending
order.
textstring
a list of the texts of all log entries
timestamparray of strings
a list of the timestamps as seconds since 1970-01-01 for all log
entries.
topicstring
a list of the topics of all log entries
totalAmountinteger
the total amount of log entries before pagination.
400Bad Request
is returned if invalid values are specified for upto or level.
403Forbidden
is returned if there are insufficient privileges to access the logs.
Returns the server’s current log level settings.
The result is a JSON object with the log topics being the object keys, and
the log levels being the object values.
This API can be turned off via the startup option --log.api-enabled. In case
the API is disabled, all requests will be responded to with HTTP 403. If the
API is enabled, accessing it requires admin privileges, or a
superuser JWT, depending on
the value of the --log.api-enabled startup option.
Path Parameters
Query Parameters
serverIdstring
Forwards the request to the specified server.
HTTP Headers
Responses
200OK
is returned if the request is valid
403Forbidden
is returned if there are insufficient privileges to read log levels.
Modifies and returns the server’s current log level settings.
The request body must be a JSON string with a log level or a JSON object with the
log topics being the object keys and the log levels being the object values.
If only a JSON string is specified as input, the log level is adjusted for the
“general” log topic only. If a JSON object is specified as input, the log levels will
be set only for the log topic mentioned in the input object, but preserved for every
other log topic.
To set the log level for all log levels to a specific value, it is possible to hand
in the special pseudo log topic “all”.
The result is a JSON object with all available log topics being the object keys, and
the adjusted log levels being the object values.
Possible log levels are:
FATAL - Only critical errors are logged after which the arangod
process terminates.
ERROR - Only errors are logged. You should investigate and fix errors
as they may harm your production.
WARNING - Errors and warnings are logged. Warnings may be serious
application-wise and can indicate issues that might lead to errors
later on.
INFO - Errors, warnings, and general information is logged.
DEBUG - Outputs debug messages used in the development of ArangoDB
in addition to the above.
TRACE - Logs detailed tracing of operations in addition to the above.
This can flood the log. Don’t use this log level in production.
This API can be turned off via the startup option --log.api-enabled. In case
the API is disabled, all requests will be responded to with HTTP 403. If the
API is enabled, accessing it requires admin privileges, or a
superuser JWT, depending on
the value of the --log.api-enabled startup option.
Path Parameters
Query Parameters
serverIdstring
Forwards the request to the specified server.
HTTP Headers
Request Body application/jsonobject
agencystring
Agents use this log topic to inform about any activity
including the RAFT consensus gossip.
agencycommstring
DB-Servers and Coordinators log the requests they send to the
Agency.
agencystorestring
Optional verbose logging of Agency write operations.
allstring
Pseudo-topic to address all log topics.
aqlstring
Logs information about the AQL query optimization and
execution. DB-Servers and Coordinators log the cluster-internal
communication around AQL queries. It also reports the AQL
memory limit on startup.
arangosearchstring
Logs information related to ArangoSearch including Analyzers,
the column cache, and the commit and consolidation threads.
audit-authenticationstring
Controls whether events such as successful logins and
missing or wrong credentials are written to the audit log
(Enterprise Edition only).
audit-authorizationstring
Controls whether events such as users trying to access databases
without the necessary permissions are written to the audit log
(Enterprise Edition only).
audit-collectionstring
Controls whether events about collections creation, truncation,
and deletion are written to the audit log (Enterprise Edition only).
audit-databasestring
Controls whether events about database creation and deletion
are written to the audit log (Enterprise Edition only).
audit-documentstring
Controls whether document read and write events are written
to the audit log (Enterprise Edition only).
audit-hotbackupstring
Controls whether the Hot Backup creation, restore, and delete
events are written to the audit log (Enterprise Edition only).
audit-servicestring
Controls whether the start and stop events of the audit
service are written to the audit log (Enterprise Edition only).
audit-viewstring
Controls whether events about View creation and deletion
are written to the audit log (Enterprise Edition only).
authenticationstring
Logs events related to authentication, for example, when a
JWT secret is generated or a token is validated against a secret.
authorizationstring
Logs when a user has insufficient permissions for a request.
backupstring
Logs events related to Hot Backup (Enterprise Edition only).
benchstring
Logs events related to benchmarking with arangobench.
cachestring
Logs events related to caching documents and index entries
as well as the cache configuration on startup.
clusterstring
Logs information related to the cluster-internal communication
as well as cluster operations. This includes changes to the
state and readiness of DB-Servers and connectivity checks
on Coordinators.
communicationstring
Logs lower-level network connection and communication events.
configstring
Logs information related to the startup options and server
configuration.
crashstring
Logs information about a fatal error including a backtrace
before the process terminates.
developmentstring
This log topic is reserved for the development of ArangoDB.
dumpstring
Logs events related to dumping data with arangodump.
enginesstring
Logs various information related to ArangoDB’s use of the
RocksDB storage engine, like the initialization and
file operations.
RocksDB’s internal log messages are passed through using the
rocksdb log topic.
flushstring
Logs events related to flushing data from memory to disk.
generalstring
Logs all messages of general interest and that don’t fit
under any of the other log topics. For example, it reports
the ArangoDB version and the detected operating system and
memory on startup.
graphsstring
Logs information related to graph operations including
graph traversal and path search tracing.
heartbeatstring
Logs everything related to the cluster heartbeat for
monitoring the intra-connectivity.
httpclientstring
Logs the activity of the HTTP request subsystem that is used
in replication, client tools, and V8.
ldapstring
Logs everything related to LDAP authentication (Enterprise Edition only).
libiresearchstring
Logs the internal log messages of IResearch, the underlying
library of ArangoSearch.
licensestring
Logs events related to the license management like the
expiration of a license (Enterprise Edition only).
maintenancestring
Logs the operations of the cluster maintenance including
shard locking and collection creation.
memorystring
Logs the memory configuration on startup and reports
problems with memory alignment and operating system settings.
mmapstring
Unused log topic for information related to memory mapping.
pregelstring
Logs everything related to Pregel graph processing.
queriesstring
Logs slow queries as well as internal details about the
execution of AQL queries at low log levels.
replicationstring
Logs information related to the data replication within a cluster.
requestsstring
Logs the handling of internal and external requests and
can include IP addresses, endpoints, and HTTP headers and
bodies when using low log levels.
It overlaps with the network communication log topic.
restorestring
This log topic is only used by arangorestore.
rocksdbstring
Logs RocksDB’s internal log messages as well RocksDB
background errors.
Information related to ArangoDB’s use of the
RocksDB storage engine uses the engines log topic.
securitystring
Logs the security configuration for V8.
sslstring
Logs information related to the in-transit encryption of
network communication using SSL/TLS.
startupstring
Logs information related to the startup and shutdown of a
server process as well as anything related to upgrading the
database directory.
statisticsstring
Logs events related to processing server statistics.
This is independent of server metrics.
supervisionstring
Logs information related to the Agency’s cluster supervision.
syscallstring
Logs events related to calling operating system functions.
It reports problems related to file descriptors and the
server process monitoring.
threadsstring
Logs information related to the use of operating system
threads and the threading configuration of ArangoDB.
trxstring
Logs information about transaction management.
ttlstring
Logs the activity of the background thread for
time-to-live (TTL) indexes.
v8string
Logs various information related to ArangoDB’s use of the
V8 JavaScript engine, like the initialization as well as
entering and exiting contexts.
validationstring
Logs when the schema validation fails for a document.
viewsstring
Logs certain events related to ArangoSearch Views.
Responses
200OK
is returned if the request is valid
400Bad Request
is returned when the request body contains invalid JSON.
403Forbidden
is returned if there are insufficient privileges to adjust log levels.
Returns the server’s current structured log settings.
The result is a JSON object with the log parameters being the object keys, and
true or false being the object values, meaning the parameters are either
enabled or disabled.
This API can be turned off via the startup option --log.api-enabled. In case
the API is disabled, all requests will be responded to with HTTP 403. If the
API is enabled, accessing it requires admin privileges, or a
superuser JWT, depending on
the value of the --log.api-enabled startup option.
Responses
200OK
is returned if the request is valid
403Forbidden
is returned if there are insufficient privileges to read structured log
parameters.
Modifies and returns the server’s current structured log settings.
The request body must be a JSON object with the structured log parameters
being the object keys and true or false object values, for either
enabling or disabling the parameters.
The result is a JSON object with all available structured log parameters being
the object keys, and true or false being the object values, meaning the
parameter in the object key is either enabled or disabled.
This API can be turned off via the startup option --log.api-enabled. In case
the API is disabled, all requests will be responded to with HTTP 403. If the
API is enabled, accessing it requires admin privileges, or a
superuser JWT, depending on
the value of the --log.api-enabled startup option.
Request Body application/jsonobject
databaseboolean
One of the possible log parameters.
urlboolean
One of the possible log parameters.
usernameboolean
One of the possible log parameters.
Responses
200OK
is returned if the request is valid
403Forbidden
is returned if there are insufficient privileges to adjust log levels.