question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

API Endpoint - Logs

See original GitHub issue

Description 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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
mik-lajcommented, Jun 10, 2020

@ephraimbuddy Fantastic. I’ve assigned you to this ticket.

0reactions
mik-lajcommented, Jun 15, 2020

@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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found