如何将Stackdriver日志/接收器合并到一个BigQuery项目/数据集中? [英] How do I coalesce Stackdriver logs/sinks into one BigQuery project/dataset?

查看:123
本文介绍了如何将Stackdriver日志/接收器合并到一个BigQuery项目/数据集中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

设置Stackdriver日志接收器到BigQuery非常简单。然而,我有很多项目,而不是每个导出接收器都转到其相应的项目,我想将所有项目中的日志合并到一个专用项目。



Stackdriver接收器配置中的配置看起来不允许我选择不同的项目来发送日志。








如何选择不同的项目/数据集? 您需要选择'自定义目的地'选项。这将允许您插入不同的项目/数据集。您看到的默认数据集总是与您当前选中的项目关联,因此您无法选择其他项目/数据集。



改为:


  1. 选择'自定义目的地'

  2. 目的地使用以下格式: bigquery.googleapis.com/projects/ [PROJECT_ID] / datasets / [DATASET_ID]

  3. 编辑权限在第2步中的所述项目/数据集中。

查看更多这里


Setting up Stackdriver log sinks to BigQuery is straightforward.

However, I have lots of projects, and instead of each export sink going to its corresponding project, I'd like to coalesce the logs from all my projects to one dedicated project.

The configuration in the Stackdriver sink config doesn't appear to let me select a different project to send the logs to.


How do I select a different project/dataset?

解决方案

You need to select the 'Custom destination' option. This will allow you to plug in a different project/dataset. The default datasets you see are always tied to whichever project you've currently got selected, so you can't select a different project/dataset.

Instead:

  1. Select 'Custom Destination'
  2. Add the destination using this format: bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET_ID]
  3. Give the sink writer editor permissions on the said project/dataset in step 2.

See more here.

这篇关于如何将Stackdriver日志/接收器合并到一个BigQuery项目/数据集中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆