Reputation: 63
The goal of this context is to achieve a centralized logs storage. I want all of the logs across different projects to be stored under the same project.
By far of my experience on the ops-agent, it always sends logs to the corresponding project's log bucket. The ops-agent documentation neither provide manual on customizing the log destination.
I want to send the logs to a specified log bucket or Pub/Sub topic. Is it achievable?
Upvotes: 3
Views: 935
Reputation: 126
I think that Log Sinks could help you to achieve what you want. They are the mecanism to aggregate logs within and Organization.
Here you can check and example where they do the same with audit logs.
And here you can find the documentation of how to route logs using sinks.
With sinks you can use several destinations as Log buckets, PubSub, cloud Storage or BigQuery.
Hope this works for your use case.
Upvotes: 2