How do I export my Dataflow worker logs to Cloud Pubsub?

时间:2016-02-12 19:27:02

标签: google-cloud-dataflow google-cloud-pubsub google-cloud-logging

I'd like to run some secondary processing on my worker logs from Cloud Dataflow. Is there an easy way to do that?

1 个答案:

答案 0 :(得分:3)

This can be done by configuring logs export from Cloud Logging.

First, navigate to the Exports table in the Cloud Logging UI:

Select "Exports"

On the Exports page, follow these steps:

  1. Select the Dataflow service.
  2. Deselect All sources.
  3. Click Add item and select dataflow.googleapis.com/worker.
  4. Select a Pubsub topic to publish to.

Export page