mcgin opened a new issue #13494:
URL: https://github.com/apache/airflow/issues/13494


   <!--
   
   Welcome to Apache Airflow!  For a smooth issue process, try to answer the 
following questions.
   Don't worry if they're not all applicable; just try to include what you can 
:-)
   
   If you need to include code snippets or logs, please put them in fenced code
   blocks.  If they're super-long, please use the details tag like
   <details><summary>super-long log</summary> lots of stuff </details>
   
   Please delete these comment blocks before submitting the issue.
   
   -->
   
   <!--
   
   IMPORTANT!!!
   
   PLEASE CHECK "SIMILAR TO X EXISTING ISSUES" OPTION IF VISIBLE
   NEXT TO "SUBMIT NEW ISSUE" BUTTON!!!
   
   PLEASE CHECK IF THIS ISSUE HAS BEEN REPORTED PREVIOUSLY USING SEARCH!!!
   
   Please complete the next sections or the issue will be closed.
   These questions are the first thing we need to know to understand the 
context.
   
   -->
   
   **Apache Airflow version**: 2.0.0
   
   
   **Kubernetes version (if you are using kubernetes)** (use `kubectl 
version`): 1.16.15-gke.4901
   
   **Environment**:
   
   - **Cloud provider or hardware configuration**: GKE
   - **OS** (e.g. from /etc/os-release): 
   - **Kernel** (e.g. `uname -a`): 
   - **Install tools**: Using the apache/airflow docker image
   - **Others**: Running 1 pod encapsulating 2 containers (1 x webserver and 1x 
scheduler) running in localexecutor mode
   
   **What happened**:
   
   I have remote logging configured for tasks to send the logs to StackDriver 
as per the below configuration.  The logs get sent to Stackdriver okay and I 
can view them via the GCP console.  However I cannot view them when browsing 
the UI.
   
   The UI shows a spinning wheel and I see requests in the network tab to 
   `https://my_airflow_instance/get_logs_with_metadata?dag_id=XXX......`
   
   These requests take about 15 seconds to run before returning with HTTP 200 
and something like this in the response body:
   
   ```
   {"message":"","metadata":{"end_of_log":false,"next_page_token":"xxxxxxxxx"}}
   ```
   
   So no actual log data
   
   **What you expected to happen**:
   
   I should see the logs in the Web UI
   
   **How to reproduce it**:
   
   Configure remote logging for StackDriver with the below config:
   
   ```
     AIRFLOW__LOGGING__GOOGLE_KEY_PATH: 
"/var/run/secrets/airflow/secrets/google-cloud-platform/stackdriver/credentials.json"
     AIRFLOW__LOGGING__LOG_FORMAT: "[%(asctime)s] {{%(filename)s:%(lineno)d}} 
%(levelname)s - %(message)s"
     AIRFLOW__LOGGING__REMOTE_LOGGING: "True"
     AIRFLOW__LOGGING__REMOTE_BASE_LOG_FOLDER: "stackdriver://airflow-tasks"
   ```
   
   **Anything else we need to know**:
   
   <!--
   
   How often does this problem occur? Once? Every time etc?
   
   Any relevant logs to include? Put them here in side a detail tag:
   <details><summary>x.log</summary> lots of stuff </details>
   
   -->
   


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to