request deployment debug airflow-dag-logs
Syntax
request deployment debug airflow-dag-logs dag-id dag-ID (none|run-id run-ID)
request deployment debug airflow-dag-logs interval interval
Description
Generate an output file of deployment airflow logs for a specified period of time. You can retrieve and save airflow logs for specific workflows or runs or all logs for a specified duration. The output files are saved in the /root/troubleshooting/log/ location.
Use this command to troubleshoot if there is failure during onboarding devices using the network implementation plan.
Options
|
dag-id dag-ID |
Enter the workflow ID. To determine the workflow ID, navigate to Orchestration > Workflows and copy the required Workflow ID. |
|
dag-id dag-ID run-id run-ID |
Enter a workflow ID and a corresponding run ID in the workflow. To determine the run ID, navigate to Orchestration > Workflows, click the required Workflow ID, click the Details tab, and copy the required Run ID. |
|
interval interval |
Enter the duration for which the logs are retrieved and saved. Format: Specify integer followed by s/m/h (seconds/minutes/hours). For example, 2h. |
Required Privilege Level
view
Output Fields
When you enter this command, an output file of the airflow log messages is created for the specified period of time.
Sample Output
- request deployment debug airflow-dag-logs dag-id device_collection
- request deployment debug airflow-dag-logs dag-id device_collection run-id manual__2026-02-03
- request deployment debug airflow-dag-logs interval 1h
request deployment debug airflow-dag-logs dag-id device_collection
user@node> request deployment debug airflow-dag-logs dag-id device_collection Using airflow worker pod: airflow-worker-5bbf954fb8-ckqrj Airflow logs for DAG-ID: device_collection archived at: /root/troubleshooting/log/dag_id=device_collection_2026-02-13_07-41-32.tar.gz Final archive location: /root/troubleshooting/log/dag_id=device_collection_2026-02-13_07-41-32.tar.gz
request deployment debug airflow-dag-logs dag-id device_collection run-id manual__2026-02-03
user @node> request deployment debug airflow-dag-logs dag-id device_collection run-id manual__2026-02-03 Using airflow worker pod: airflow-worker-5bbf954fb8-ckqrj Airflow logs for DAG-ID: device_collection, RUN-ID: manual__2026-02-03 archived at: /root/troubleshooting/log/dag_id=device_collection_run_id=manual__2026-02-03T15:48:08.363070+00:00_2026-02-13_07-41-49.tar.gz Final archive location: /root/troubleshooting/log/dag_id=device_collection_run_id=manual__2026-02-03_2026-02-13_07-41-49.tar.gz
request deployment debug airflow-dag-logs interval 1h
user @node> request deployment debug airflow-dag-logs interval 1h Using airflow worker pod: airflow-worker-5bbf954fb8-ckqrj Archiving logs modified in last 60 minutes... Archive copied locally at: /root/troubleshooting/log/recent_logs_2026-02-13_07-41-58.tar.gz Temporary archive removed from pod. Final archive location: /root/troubleshooting/log/recent_logs_2026-02-13_07-41-58.tar.gz
Release Information
Command introduced in Juniper Routing Director Release 2.8.0.