diff --git a/README.md b/README.md index 75ad21c4..20187336 100644 --- a/README.md +++ b/README.md @@ -117,8 +117,10 @@ No modules. | [cluster\_config\_endpoint\_type](#input\_cluster\_config\_endpoint\_type) | The type of endpoint to use for the cluster config access: `default`, `private`, `vpe`, or `link`. The `default` value uses the default endpoint of the cluster. | `string` | `"default"` | no | | [cluster\_id](#input\_cluster\_id) | The ID of the cluster to deploy the agent. | `string` | n/a | yes | | [cluster\_resource\_group\_id](#input\_cluster\_resource\_group\_id) | The resource group ID of the cluster. | `string` | n/a | yes | +| [enable\_annotations](#input\_enable\_annotations) | Set to true to include pod annotations in log records. Default annotations such as pod IP address and container ID, along with any custom annotations on the pod, will be included. This can help filter logs based on pod annotations in Cloud Logs. | `bool` | `false` | no | | [enable\_multiline](#input\_enable\_multiline) | Enable or disable multiline log support. [Learn more](https://cloud.ibm.com/docs/cloud-logs?topic=cloud-logs-agent-multiline) | `bool` | `false` | no | | [is\_vpc\_cluster](#input\_is\_vpc\_cluster) | Specify true if the target cluster for the agent is a VPC cluster, false if it is a classic cluster. | `bool` | `true` | no | +| [log\_filters](#input\_log\_filters) | List of additional filters to be applied on logs. [Learn more](https://github.com/terraform-ibm-modules/terraform-ibm-logs-agent/blob/main/solutions/fully-configurable/DA-types.md#configuring-log-filters). | `any` | `[]` | no | | [logs\_agent\_additional\_metadata](#input\_logs\_agent\_additional\_metadata) | The list of additional metadata fields to add to the routed logs. |
list(object({
key = optional(string)
value = optional(string)
})) | `[]` | no |
| [logs\_agent\_chart](#input\_logs\_agent\_chart) | The name of the Helm chart to deploy. | `string` | `"logs-agent-helm"` | no |
| [logs\_agent\_chart\_location](#input\_logs\_agent\_chart\_location) | The location of the Logs agent helm chart. | `string` | `"oci://icr.io/ibm/observe"` | no |
diff --git a/examples/logs-agent-iks/main.tf b/examples/logs-agent-iks/main.tf
index 12781d1c..02451030 100644
--- a/examples/logs-agent-iks/main.tf
+++ b/examples/logs-agent-iks/main.tf
@@ -153,4 +153,27 @@ module "logs_agent" {
cloud_logs_ingress_endpoint = module.cloud_logs.ingress_private_endpoint
cloud_logs_ingress_port = 3443
logs_agent_enable_scc = false # only true for Openshift
+ log_filters = [
+ {
+ name = "lua"
+ match = "*"
+ call = "add_crn_field"
+ code = <