1

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. enter image description here

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 ?

  • Have you tried to follow the documentation section [Debugging a patch job](https://cloud.google.com/compute/docs/os-patch-management/create-patch-job#debug-patch) and change `osconfig-log-level` to `debug` in [metadata value](https://cloud.google.com/compute/docs/storing-retrieving-metadata#custom)? – Serhii Rohoza Mar 16 '21 at 12:14

1 Answers1

2

There may be two reasons for the status to show inactive

  1. The VM is in off state when the patch is deployed.

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

tomerpacific
  • 4,704
  • 13
  • 34
  • 52