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 even superuser
privileges, depending on the value of the --log.api-enabled startup option.
Path Parameters
Query Parameters
uptostring
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
The default value is info.
levelstring
Returns all log entries of log level level. Note that the query parameters
upto and level are mutually exclusive.
startnumber
Returns all log entries such that their log entry identifier (lid .)
is greater or equal to start.
sizenumber
Restricts the result to at most size log entries.
offsetnumber
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
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. The default value is asc.
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 even superuser
privileges, depending on the value of the --log.api-enabled startup option.
Path Parameters
Query Parameters
uptostring
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
The default value is info.
levelstring
Returns all log entries of log level level. Note that the query parameters
upto and level are mutually exclusive.
startnumber
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
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
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. The default value is asc.
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 even superuser
privileges, 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 - There will be no way out of this. ArangoDB will go down after this message.
ERROR - This is an error. you should investigate and fix it. It may harm your production.
WARNING - This may be serious application-wise, but we don’t know.
INFO - Something has happened, take notice, but no drama attached.
DEBUG - output debug messages
TRACE - trace - prepare your log to be flooded - don’t use 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 even superuser
privileges, 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
One of the possible log topics.
agencycommstring
One of the possible log topics.
agencystorestring
One of the possible log topics.
allstring
Pseudo-topic to address all log topics.
aqlstring
One of the possible log topics.
arangosearchstring
One of the possible log topics.
audit-authenticationstring
One of the possible log topics (Enterprise Edition only).
audit-authorizationstring
One of the possible log topics (Enterprise Edition only).
audit-collectionstring
One of the possible log topics (Enterprise Edition only).
audit-databasestring
One of the possible log topics (Enterprise Edition only).
audit-documentstring
One of the possible log topics (Enterprise Edition only).
audit-hotbackupstring
One of the possible log topics (Enterprise Edition only).
audit-servicestring
One of the possible log topics (Enterprise Edition only).
audit-viewstring
One of the possible log topics (Enterprise Edition only).
authenticationstring
One of the possible log topics.
authorizationstring
One of the possible log topics.
backupstring
One of the possible log topics.
benchstring
One of the possible log topics.
cachestring
One of the possible log topics.
clusterstring
One of the possible log topics.
clustercommstring
One of the possible log topics.
collectorstring
One of the possible log topics.
communicationstring
One of the possible log topics.
configstring
One of the possible log topics.
crashstring
One of the possible log topics.
developmentstring
One of the possible log topics.
dumpstring
One of the possible log topics.
enginesstring
One of the possible log topics.
flushstring
One of the possible log topics.
generalstring
One of the possible log topics.
graphsstring
One of the possible log topics.
heartbeatstring
One of the possible log topics.
httpclientstring
One of the possible log topics.
ldapstring
One of the possible log topics (Enterprise Edition only).
libiresearchstring
One of the possible log topics.
licensestring
One of the possible log topics (Enterprise Edition only).
maintenancestring
One of the possible log topics.
memorystring
One of the possible log topics.
mmapstring
One of the possible log topics.
performancestring
One of the possible log topics.
pregelstring
One of the possible log topics.
queriesstring
One of the possible log topics.
replicationstring
One of the possible log topics.
requestsstring
One of the possible log topics.
restorestring
One of the possible log topics.
rocksdbstring
One of the possible log topics.
securitystring
One of the possible log topics.
sslstring
One of the possible log topics.
startupstring
One of the possible log topics.
statisticsstring
One of the possible log topics.
supervisionstring
One of the possible log topics.
syscallstring
One of the possible log topics.
threadsstring
One of the possible log topics.
trxstring
One of the possible log topics.
ttlstring
One of the possible log topics.
v8string
One of the possible log topics.
validationstring
One of the possible log topics.
viewsstring
One of the possible log topics.
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 even superuser
privileges, 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 even superuser
privileges, 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.