青龙面板[Qinglong] icon

青龙面板[Qinglong]

青龙面板计划任务节点.详细API请参考:https://qinglong.online/api/

Overview

This node integrates with the QingLong Panel API to manage various system and task-related resources. Specifically, for the "系统设置" (System Settings) resource and the "获取系统日志" (Get System Logs) operation, it retrieves system log data within a specified time range.

Common scenarios where this node is beneficial include:

  • Monitoring system activity by fetching logs between two dates.
  • Automating log retrieval for auditing or troubleshooting purposes.
  • Integrating system log data into workflows for alerting or reporting.

Example: You can configure the node to fetch all system logs from the past week to analyze system behavior or detect anomalies.

Properties

Name Meaning
开始时间 Start time of the log query (date-time). Required.
结束时间 End time of the log query (date-time). Required.

These properties define the time window for which system logs will be retrieved.

Output

The node outputs JSON data under the json.result field containing the system logs fetched from the QingLong API. The exact structure depends on the API response but generally includes log entries matching the specified time range.

No binary data output is involved in this operation.

Dependencies

  • Requires an API key credential for authenticating with the QingLong Panel API.
  • The node uses internal helper functions to obtain the authentication token and make HTTP requests to the QingLong API endpoints.
  • No additional external dependencies are required beyond the configured API credentials.

Troubleshooting

  • Common issues:

    • Invalid or expired API credentials may cause authentication failures.
    • Providing invalid date formats or missing required date parameters (开始时间, 结束时间) will result in errors.
    • Network connectivity issues can prevent successful API calls.
  • Error messages:

    • If the operation is not implemented or unsupported, the node throws an error indicating the operation is not yet implemented.
    • API errors returned from QingLong are wrapped and surfaced as node errors; check the message for details.
  • Resolutions:

    • Ensure valid API credentials are configured.
    • Verify that both start and end times are provided and correctly formatted.
    • Confirm network access to the QingLong API endpoint.

Links and References

Discussion