'GCP OS Patch management logging
In GCP I have created a patching job in OS Patch management. It shows the status in OS patch management console if the patching job has succeeded or failed.

when I click on logs it redirects to log explorer, but I dont see any logs in log explorer Can I know how to enable logs to see it in log explorer ?
Solution 1:[1]
There may be two reasons for the status to show inactive
The VM is in off state when the patch is deployed.
The OS config Agent is absent in the VM To check the is the agent is present or not use the below command where the instance is inactive
sudo systemctl status google-osconfig-agent
if the status is or not found you should install the agent refer the link to install the agent.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | tomerpacific |
