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/24 18:54:16 UTC

[GitHub] [airflow] matthewblock opened a new issue, #27234: Logs server doesn't fall back to local logs when Amazon CloudWatch logs aren't found

matthewblock opened a new issue, #27234:
URL: https://github.com/apache/airflow/issues/27234

   ### 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
   
   ### 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)
   


-- 
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] potiuk closed issue #27234: Logs server doesn't fall back to local logs when Amazon CloudWatch logs aren't found

Posted by GitBox <gi...@apache.org>.
potiuk closed issue #27234: Logs server doesn't fall back to local logs when Amazon CloudWatch logs aren't found
URL: https://github.com/apache/airflow/issues/27234


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