<p>Recently I did an upgrade on my cluster that's running multiple containers for microservices written in Java (using default Spring Boot's log4j2 default configuration). Since then, the container log is not being updated anymore.
The <em>kubectl logs</em> command is working fine, all the recent logs can be seen using this command, but the logs that should be appearing in the GKE dashboard is simply not working anymore. I checked the Google's Loggin API and it's enabled.</p>

<p>Does anyone know what's the possible reasons for this or how to solve it?</p>

<p>The solution was to disable the <strong>Legacy Stackdriver</strong> and enable <strong>Stackdriver Kubernetes Engine Monitoring</strong>:</p>

<ol>
<li>Go to the cluster page and click on edit;</li>
<li>Disable both Legacy Stackdriver Monitoring and Logging;</li>
<li>Enable Stackdriver Kubernetes Engine Monitoring using the option "System and workload logging and monitoring"</li>
</ol>
