You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/10/31 02:25:56 UTC
[GitHub] [airflow] potiuk opened a new issue, #27396: CloudWatch task handler doesn't fall back to local logs when Amazon CloudWatch logs aren't found
potiuk opened a new issue, #27396:
URL: https://github.com/apache/airflow/issues/27396
This is really a CloudWatch handler issue - not "airflow" core.
### Discussed in https://github.com/apache/airflow/discussions/27395
<div type='discussions-op-text'>
<sup>Originally posted by **matthewblock** October 24, 2022</sup>
### Apache Airflow version
Other Airflow 2 version (please specify below)
### What happened
We recently activated AWS Cloudwatch logs. We were hoping the logs server would gracefully handle task logs that previously existed but were not written to Cloudwatch, but when fetching the remote logs failed (expected), the logs server didn't fall back to local logs.
```
*** Reading remote log from Cloudwatch log_group: <our log group> log_stream: <our log stream>
```
### What you think should happen instead
According to documentation [Logging for Tasks](https://airflow.apache.org/docs/apache-airflow/stable/logging-monitoring/logging-tasks.html#writing-logs-locally), when fetching remote logs fails, the logs server should fall back to looking for local logs:
> In the Airflow UI, remote logs take precedence over local logs when remote logging is enabled. If remote logs can not be found or accessed, local logs will be displayed.
This should be indicated by the message `*** Falling back to local log`.
If this is not the intended behavior, the documentation should be modified to reflect the intended behavior.
### How to reproduce
1. Run a test DAG without [AWS CloudWatch logging configured](https://airflow.apache.org/docs/apache-airflow-providers-amazon/stable/logging/cloud-watch-task-handlers.html)
2. Configure AWS CloudWatch remote logging and re-run a test DAG
### Operating System
Debian buster-slim
### Versions of Apache Airflow Providers
_No response_
### Deployment
Official Apache Airflow Helm Chart
### Deployment details
_No response_
### Anything else
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
</div>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] hankehly commented on issue #27396: CloudWatch task handler doesn't fall back to local logs when Amazon CloudWatch logs aren't found
Posted by GitBox <gi...@apache.org>.
hankehly commented on issue #27396:
URL: https://github.com/apache/airflow/issues/27396#issuecomment-1309495105
Ready for review
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] potiuk commented on issue #27396: CloudWatch task handler doesn't fall back to local logs when Amazon CloudWatch logs aren't found
Posted by GitBox <gi...@apache.org>.
potiuk commented on issue #27396:
URL: https://github.com/apache/airflow/issues/27396#issuecomment-1303921200
Done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] potiuk closed issue #27396: CloudWatch task handler doesn't fall back to local logs when Amazon CloudWatch logs aren't found
Posted by GitBox <gi...@apache.org>.
potiuk closed issue #27396: CloudWatch task handler doesn't fall back to local logs when Amazon CloudWatch logs aren't found
URL: https://github.com/apache/airflow/issues/27396
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] hankehly commented on issue #27396: CloudWatch task handler doesn't fall back to local logs when Amazon CloudWatch logs aren't found
Posted by GitBox <gi...@apache.org>.
hankehly commented on issue #27396:
URL: https://github.com/apache/airflow/issues/27396#issuecomment-1303784615
I'll tackle this! Please assign me.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] potiuk commented on issue #27396: CloudWatch task handler doesn't fall back to local logs when Amazon CloudWatch logs aren't found
Posted by GitBox <gi...@apache.org>.
potiuk commented on issue #27396:
URL: https://github.com/apache/airflow/issues/27396#issuecomment-1296457775
Seems CloudWatch handler issue
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org