Difference between revisions of "Terraform resource: datadog logs index"
Jump to navigation
Jump to search
(Created page with " {{tf dd}}") |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | * https://registry.terraform.io/providers/DataDog/datadog/latest/docs/resources/logs_index | ||
+ | == Official example == | ||
+ | <pre> | ||
+ | # A sample Datadog logs index resource definition. | ||
+ | resource "datadog_logs_index" "sample_index" { | ||
+ | name = "your index" | ||
+ | daily_limit = 200000 | ||
+ | daily_limit_reset { | ||
+ | reset_time = "14:00" | ||
+ | reset_utc_offset = "+02:00" | ||
+ | } | ||
+ | daily_limit_warning_threshold_percentage = 50 | ||
+ | retention_days = 7 | ||
+ | flex_retention_days = 180 | ||
+ | filter { | ||
+ | query = "*" | ||
+ | } | ||
+ | exclusion_filter { | ||
+ | name = "Filter coredns logs" | ||
+ | is_enabled = true | ||
+ | filter { | ||
+ | query = "app:coredns" | ||
+ | sample_rate = 0.97 | ||
+ | } | ||
+ | } | ||
+ | exclusion_filter { | ||
+ | name = "Kubernetes apiserver" | ||
+ | is_enabled = true | ||
+ | filter { | ||
+ | query = "service:kube_apiserver" | ||
+ | sample_rate = 1.0 | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | </pre> | ||
− | {{tf dd}} | + | |
+ | == See also == | ||
+ | * {{tf dd}} | ||
+ | |||
+ | [[Category:Datatog]] |
Latest revision as of 14:38, 23 October 2024
Official example[edit]
# A sample Datadog logs index resource definition. resource "datadog_logs_index" "sample_index" { name = "your index" daily_limit = 200000 daily_limit_reset { reset_time = "14:00" reset_utc_offset = "+02:00" } daily_limit_warning_threshold_percentage = 50 retention_days = 7 flex_retention_days = 180 filter { query = "*" } exclusion_filter { name = "Filter coredns logs" is_enabled = true filter { query = "app:coredns" sample_rate = 0.97 } } exclusion_filter { name = "Kubernetes apiserver" is_enabled = true filter { query = "service:kube_apiserver" sample_rate = 1.0 } } }
See also[edit]
Advertising: