简体   繁体   中英

Exporting logs from GCP to Splunk

I'm having trouble understand this pricing diagram from GCP: reference link

I'm trying to export logs directly from the logging API to a Cloud Pub/Sub, but all the documentation I see for achieving this is creating a sink from Stackdriver logging: reference link

I don't want logs to be ingested into Stackdriver before being exported to a Cloud Pub/Sub as that would incur costs. Am I looking at the diagram correctly or do they not charge for this?

Any help is appreciated.

The Logging API is an interface into Stackdriver Logs. If you don't want logs to go to Stackdriver, don't use the logging API.

If you want to log from your application to Splunk without going through stackdriver, you will need to build a customer solution that doesn't use the logging API or any of the infrastructure Stackdriver logs provides.

So there's a simple solution to this problem and that is to exclude and export the logs. I couldn't wrap my head around logs being discarded and at the same time being exported to the Cloud Pub/Sub. Check this link out for the documentation: documentation link

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM