awesomeHiro
awesomeHiro

Reputation: 21

Datadog: How to automate configuring Log Archives

How can I automate configuring Log Archives on GCP?

I can do it manually by following steps https://docs.datadoghq.com/logs/archives/?tab=googlecloudstorage

I guess selenium can help this but I looking for a more programmatic way like Terraform or REST API

Thank you.

Upvotes: 2

Views: 486

Answers (1)

Stephen Rosenthal
Stephen Rosenthal

Reputation: 773

I’m not sure if it is a recent addition, but the Datadog public API supports configuring Log Archives: https://docs.datadoghq.com/api/latest/logs-archives/

You can also use tools like Terraform to configure them: https://registry.terraform.io/providers/DataDog/datadog/latest/docs/resources/logs_archive (it uses the Datadog API internally)

Upvotes: 1

Related Questions