Actions64
- 定时任务 Actions
- 订阅管理 Actions
- 环境变量 Actions
- 配置文件 Actions
- 脚本管理 Actions
- 依赖管理 Actions
- 日志管理 Actions
- 系统设置 Actions
Overview
This node integrates with the QingLong panel API to manage various system and task-related operations. Specifically, for the "系统设置" (System Settings) resource and the "删除系统日志" (Delete System Logs) operation, it allows users to delete system logs within a specified time range. This is useful for maintaining system hygiene by removing old or unnecessary log data.
Practical scenarios include:
- Automatically cleaning up system logs older than a certain date to free storage.
- Managing log retention policies by deleting logs between specific start and end times.
- Integrating with workflows that require periodic log maintenance.
Properties
| Name | Meaning |
|---|---|
| 开始时间 | Start time of the log deletion period (required). Specifies the beginning datetime from which logs will be deleted. |
| 结束时间 | End time of the log deletion period (required). Specifies the ending datetime until which logs will be deleted. |
Output
The node outputs a JSON object under the result field containing the response from the QingLong API after attempting to delete the system logs. The structure depends on the API's response but generally indicates success or failure of the deletion operation along with any relevant messages.
No binary data output is involved in this operation.
Example output JSON snippet:
{
"result": {
"success": true,
"message": "Logs deleted successfully",
"deletedCount": 123
}
}
Dependencies
- Requires an API key credential for authenticating with the QingLong panel API.
- The node uses internal helper functions to obtain tokens and make authenticated HTTP requests to QingLong endpoints.
- No additional external services are required beyond access to the QingLong API.
Troubleshooting
Common issues:
- Incorrect or expired API authentication token may cause authorization failures.
- Providing invalid or improperly formatted start/end datetime values can lead to request errors.
- Attempting to delete logs outside the permissible date range or when no logs exist may return empty results or errors.
Error messages:
"任务模块的[operation]操作暂未实现"("The [operation] action of the task module is not yet implemented"): Indicates the selected operation is not supported; ensure you select "删除系统日志" under "系统设置".- API errors related to authentication or permissions usually indicate misconfigured credentials.
Resolutions:
- Verify and refresh the API key credential.
- Ensure date inputs are valid ISO 8601 datetime strings.
- Confirm the QingLong API endpoint is reachable and the user has sufficient permissions.
Links and References
- QingLong API documentation: https://qinglong.online/api/
- n8n documentation on creating custom nodes: https://docs.n8n.io/integrations/creating-nodes/