简体   繁体   English

将日志从GCP导出到Splunk

[英]Exporting logs from GCP to Splunk

I'm having trouble understand this pricing diagram from GCP: reference link 我无法从GCP了解此价格图表: 参考链接

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 我正在尝试直接将日志从日志记录API导出到Cloud Pub / Sub,但是我看到的用于实现此目的的所有文档都是从Stackdriver logging创建接收器: 参考链接

I don't want logs to be ingested into Stackdriver before being exported to a Cloud Pub/Sub as that would incur costs. 我不希望在将日志导出到Cloud Pub / Sub之前将其吸收到Stackdriver中,因为这会产生成本。 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. 日志API Stackdriver Logs的接口。 If you don't want logs to go to Stackdriver, don't use the logging API. 如果您不希望日志进入Stackdriver,请不要使用日志记录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. 如果要不通过堆栈驱动程序就从应用程序登录到Splunk,则需要构建一个不使用日志记录API或Stackdriver日志提供的任何基础结构的客户解决方案。

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. 我无法绕过被丢弃的日志,同时又将其导出到Cloud Pub / Sub。 Check this link out for the documentation: documentation link 请查看此链接以获取文档: 文档链接

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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