DagaReiN
DagaReiN

Reputation: 99

GCP Windows Event Viewer to Cloud Logging

I have a Windows Server 2016 Instance in GCP,
I would like to to view the Event Viewer log or custom log in Google Cloud Logging.

I already install the OpsAgent, configure the default config in C:\Program Files\Google\Cloud Operations\Ops Agent\config\config.yaml and restart the service.

The VM also had Stackdriver Logging API: Write Only &
Stackdriver Monitoring API: Write Only permissions.

I try to restart the IIS, the log is appear in Event Viewer but not in Cloud Logging.

What i need to do to make the logging coming out in Cloud Logging ?

Thank you.

Upvotes: 0

Views: 1371

Answers (1)

DagaReiN
DagaReiN

Reputation: 99

I able to solve my own issues.

Since my default Logs Router _Default is only allowing the log from container.

By create a new Log Router to incude resource.type="gce_instance" resources, I'm able to see the log coming from the Windows instance now.

Upvotes: 1

Related Questions