Get Live Logs Data

JFrog REST APIs

ft:sourceType
Paligo

Description: Returns the Live Logs data for the specified log ID.

Parameter

Description

Data Output

Contains the log content chuck (up to 300KB)

Last_update_modified value

The log file's last updated timestamp

Last_update_label value

The timestamp of the response

File_size value

The total size of the log file

Note: This feature is available only for Enterprise+ subscriptions.

Since: Artifactory 7.16.0

Security: Requires a privileged user (admin).

Headers: X-JFrog-Node-Id

Usage: GET /api/system/logs/data?id=log_name[&file_size=file_size]

  • Artifactory: api/system/logs/data

  • Xray, Pipelines and Distribution: api/v1/system/logs/data

Sample Usage

GET /api/system/logs/data?id=some_log.log&file_size=0 -H "X-JFrog-Node-Id:node1"
{
  "last_update_modified": 1612869112882,
  "last_update_label": 1612869113059,
  "log_content": “...”
  "file_size": 45550
}