Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Logging in Apigee X environment with Pub/Sub model for data ingestion

HM
Bronze 1
Bronze 1

Hi All,

Looking for procedure/link/document for Logging of transactions/ status codes from Apigee X environment - API services in GCP and publish to observability tools such as Splunk, Coralogix etc. using Pub/Sub model for data ingestion.

please share the insights here

Regards

Heman

 

 

 

2 2 309
2 REPLIES 2

You should first take a look at using the Message Logging policy. You can add this in your api proxy, and have it send data to a syslog endpoint directly and you can customize what is logged to suit your needs.

Thanks for the reply ..

please elaborate more about syslog endpoint (as not looking for REST API method of implementation)and initiate Pub/Sub model from GCP perspective (https://cloud.google.com/pubsub?hl=en)?

Also, can be use https://cloud.google.com/apigee/docs/api-platform/reference/policies/publish-message-policy in PostClientFlow?

from best practices perspective, which is the best option to use GCP based Pub/Sub or REST API implementation for logging?

Regards

Heman