Overview
JobLog API is an API for viewing and managing Fess job execution logs. You can retrieve and delete the execution history, execution results, and error information for scheduled jobs and crawl jobs.
Base URL
Endpoint List
| Method | Path | Description |
|---|---|---|
| GET | /logs | List job logs |
| GET | /log/{id} | Get job log |
| DELETE | /log/{id} | Delete job log |
List Job Logs
Request
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
size | Integer | No | Number of items per page (default: 20) |
page | Integer | No | Page number (1-based, default: 1) |
id | String | No | Filter by job log ID (exact match) |
Response
Response Fields
| Field | Description |
|---|---|
id | Job log ID |
jobName | Job name |
jobStatus | Job status (ok: success, fail: failure, running: in progress) |
target | Execution target (scheduler target name; default is all) |
scriptType | Script type (e.g., groovy) |
scriptData | Execution script |
scriptResult | Execution result |
startTime | Start time (epoch milliseconds; returned as a string) |
endTime | End time (epoch milliseconds; returned as a string). Not returned for running jobs. |
Note
Each log object in the response also includes an internal crudMode field (an integer indicating the CRUD operation mode, always 0 for read operations). Clients can safely ignore it.
Get Job Log
Request
Response
If no job log exists for the specified ID, an error response is returned with a non-zero value in status.
Delete Job Log
Request
Response
If no job log exists for the specified ID, an error response is returned with a non-zero value in status.
Usage Examples
List Job Logs
Extract Failed Jobs Only
Get Job Log
Delete Job Log
Calculate Job Success Rate
Reference
Admin API Overview - Admin API Overview
Scheduler API - Scheduler API
CrawlingInfo API - Crawl Information API
Job Log - Job Log Management Guide