API Endpoint - Logs
See original GitHub issueDescription Hello,
We need to prepare an endpoint that will read the logs for the task. Logs are already available in Web UI, so abstractions should be created and used in both places. The code responsible for reading the log in the Web UI is in the file airflow/www/views.py
(method get_logs_with_metadata
)
The token is metadata data serialized to JSON and encoded with base64. This prevents user from building clients based on a specific metadata structure. We cannot guarantee their permanent structure because it use external plugins.
- GET /dags/{dag_id}/taskInstances/{task_id}/{execution_date}/logs/{task_try_number}
More details about API Endpoints: https://github.com/apache/airflow/issues/8118
Use case / motivation
N/A
Related Issues
N/A
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Introduction to the Log API - New Relic Documentation
Use our Log API so you can send your monitored log data directly to New Relic via HTTP ... Use the endpoint that's...
Read more >Endpoints logs - OpenAPI - Google Cloud
Endpoints logs · In the Google Cloud console, go to the Stackdriver > Logging page: Go to the Logs Explorer page · Select...
Read more >Configuring logging for an HTTP API - Amazon API Gateway
Configuring logging for an HTTP API · Ensure that your IAM user has the required permissions to enable logging. · Create a CloudWatch...
Read more >API Logs | Swiftype Documentation
API Logs. Displays API request and response data at the Engine level. Standard plans retain 24 hours of log information, Pro+ plans retain...
Read more >API Logs and Metrics - Moesif
API Logs and Metrics. Observe and fix API issues quickly with high-cardinality, high-dimension API logs and metrics. Traditional log search is too slow...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ephraimbuddy Fantastic. I’ve assigned you to this ticket.
@ephraimbuddy EventLog is a log of operations performed via Web UI. Logs are related to Task Instance. More info: https://airflow.readthedocs.io/en/latest/howto/write-logs.html?highlight=logging This is one of the most interesting endpoints