You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> The IBM Log Analysis service is deprecated. [IBM Cloud Logs](https://www.ibm.com/products/cloud-logs) is the replacement service and is now the default agent created with this module.
17
-
18
13
19
14
<!-- Below content is automatically populated via pre-commit hook -->
### (DEPRECATED) Log Analysis agent configuration for Kubernetes metadata filtering
88
-
89
-
You can configure the logging agent to filter log lines according to the Kubernetes resources metadata by setting the exclusion and inclusion parameters.
90
-
91
-
For example, to set the agent to return all log lines coming from the `default` Kubernetes namespace and exclude anything with a label `app.kubernetes.io/name` with value `sample-app` or an annotation `annotation.user` with value `sample-user`, include these parameters:
For more information, see [Configuration for Kubernetes Metadata Filtering](https://github.com/logdna/logdna-agent-v2/blob/3.8/docs/KUBERNETES.md#configuration-for-kubernetes-metadata-filtering).
108
-
109
82
### Required IAM access policies
110
83
You need the following permissions to run this module.
111
84
@@ -136,7 +109,6 @@ You need the following permissions to run this module.
|[ibm_container_cluster.cluster](https://registry.terraform.io/providers/ibm-cloud/ibm/latest/docs/data-sources/container_cluster)| data source |
141
113
|[ibm_container_cluster_config.cluster_config](https://registry.terraform.io/providers/ibm-cloud/ibm/latest/docs/data-sources/container_cluster_config)| data source |
142
114
|[ibm_container_vpc_cluster.cluster](https://registry.terraform.io/providers/ibm-cloud/ibm/latest/docs/data-sources/container_vpc_cluster)| data source |
@@ -162,18 +134,6 @@ You need the following permissions to run this module.
162
134
| <aname="input_cluster_id"></a> [cluster\_id](#input\_cluster\_id)| The ID of the cluster you wish to deploy the agents in |`string`| n/a | yes |
163
135
| <aname="input_cluster_resource_group_id"></a> [cluster\_resource\_group\_id](#input\_cluster\_resource\_group\_id)| The Resource Group ID of the cluster |`string`| n/a | yes |
164
136
| <aname="input_is_vpc_cluster"></a> [is\_vpc\_cluster](#input\_is\_vpc\_cluster)| Specify true if the target cluster for the observability agents is a VPC cluster, false if it is a classic cluster. |`bool`|`true`| no |
165
-
| <aname="input_log_analysis_add_cluster_name"></a> [log\_analysis\_add\_cluster\_name](#input\_log\_analysis\_add\_cluster\_name)| DEPRECATED: If true, configure the Log Analysis agent to attach a tag containing the cluster name to all log messages. |`bool`|`true`| no |
166
-
| <aname="input_log_analysis_agent_custom_line_exclusion"></a> [log\_analysis\_agent\_custom\_line\_exclusion](#input\_log\_analysis\_agent\_custom\_line\_exclusion)| DEPRECATED: Log Analysis agent custom configuration for line exclusion setting LOGDNA\_K8S\_METADATA\_LINE\_EXCLUSION. See https://github.com/logdna/logdna-agent-v2/blob/master/docs/KUBERNETES.md#configuration-for-kubernetes-metadata-filtering for more info. |`string`|`null`| no |
167
-
| <aname="input_log_analysis_agent_custom_line_inclusion"></a> [log\_analysis\_agent\_custom\_line\_inclusion](#input\_log\_analysis\_agent\_custom\_line\_inclusion)| DEPRECATED: Log Analysis agent custom configuration for line inclusion setting LOGDNA\_K8S\_METADATA\_LINE\_INCLUSION. See https://github.com/logdna/logdna-agent-v2/blob/master/docs/KUBERNETES.md#configuration-for-kubernetes-metadata-filtering for more info. |`string`|`null`| no |
168
-
| <aname="input_log_analysis_agent_name"></a> [log\_analysis\_agent\_name](#input\_log\_analysis\_agent\_name)| DEPRECATED: Log Analysis agent name. Used for naming all kubernetes and helm resources on the cluster. |`string`|`"logdna-agent"`| no |
169
-
| <aname="input_log_analysis_agent_namespace"></a> [log\_analysis\_agent\_namespace](#input\_log\_analysis\_agent\_namespace)| DEPRECATED: Namespace where to deploy the Log Analysis agent. Default value is 'ibm-observe' |`string`|`"ibm-observe"`| no |
170
-
| <aname="input_log_analysis_agent_tags"></a> [log\_analysis\_agent\_tags](#input\_log\_analysis\_agent\_tags)| DEPRECATED: List of tags to associate to all log records that the agent collects so that you can identify the agent's data quicker in the logging UI. NOTE: Use the 'log\_analysis\_add\_cluster\_name' variable to add the cluster name as a tag. |`list(string)`|`[]`| no |
171
-
| <aname="input_log_analysis_agent_tolerations"></a> [log\_analysis\_agent\_tolerations](#input\_log\_analysis\_agent\_tolerations)| DEPRECATED: List of tolerations to apply to Log Analysis agent. | <pre>list(object({<br/> key = optional(string)<br/> operator = optional(string)<br/> value = optional(string)<br/> effect = optional(string)<br/> tolerationSeconds = optional(number)<br/> }))</pre> | <pre>[<br/> {<br/> "operator": "Exists"<br/> }<br/>]</pre> | no |
172
-
| <aname="input_log_analysis_enabled"></a> [log\_analysis\_enabled](#input\_log\_analysis\_enabled)| DEPRECATED: Deploy IBM Cloud Log Analysis agent |`bool`|`false`| no |
173
-
| <aname="input_log_analysis_endpoint_type"></a> [log\_analysis\_endpoint\_type](#input\_log\_analysis\_endpoint\_type)| DEPRECATED: Specify the IBM Log Analysis instance endpoint type (public or private) to use. Used to construct the ingestion endpoint. |`string`|`"private"`| no |
174
-
| <aname="input_log_analysis_ingestion_key"></a> [log\_analysis\_ingestion\_key](#input\_log\_analysis\_ingestion\_key)| DEPRECATED: Ingestion key for the Log Analysis agent to communicate with the instance |`string`|`null`| no |
175
-
| <aname="input_log_analysis_instance_region"></a> [log\_analysis\_instance\_region](#input\_log\_analysis\_instance\_region)| DEPRECATED: The IBM Log Analysis instance region. Used to construct the ingestion endpoint. |`string`|`null`| no |
176
-
| <aname="input_log_analysis_secret_name"></a> [log\_analysis\_secret\_name](#input\_log\_analysis\_secret\_name)| DEPRECATED: The name of the secret which will store the Log Analysis ingestion key. |`string`|`"logdna-agent"`| no |
177
137
| <aname="input_logs_agent_additional_log_source_paths"></a> [logs\_agent\_additional\_log\_source\_paths](#input\_logs\_agent\_additional\_log\_source\_paths)| The list of additional log sources. By default, the Logs agent collects logs from a single source at `/var/log/containers/*.log`. |`list(string)`|`[]`| no |
178
138
| <aname="input_logs_agent_additional_metadata"></a> [logs\_agent\_additional\_metadata](#input\_logs\_agent\_additional\_metadata)| The list of additional metadata fields to add to the routed logs. | <pre>list(object({<br/> key = optional(string)<br/> value = optional(string)<br/> }))</pre> |`[]`| no |
179
139
| <aname="input_logs_agent_enable_scc"></a> [logs\_agent\_enable\_scc](#input\_logs\_agent\_enable\_scc)| Whether to enable creation of Security Context Constraints in Openshift. When installing on an OpenShift cluster, this setting is mandatory to configure permissions for pods within your cluster. |`bool`|`true`| no |
Copy file name to clipboardExpand all lines: main.tf
+1-101Lines changed: 1 addition & 101 deletions
Original file line number
Diff line number
Diff line change
@@ -25,15 +25,7 @@ data "ibm_container_cluster_config" "cluster_config" {
25
25
26
26
locals {
27
27
# LOCALS
28
-
cluster_name=var.is_vpc_cluster? data.ibm_container_vpc_cluster.cluster[0].resource_name: data.ibm_container_cluster.cluster[0].resource_name# Not publically documented in provider. See https://github.com/IBM-Cloud/terraform-provider-ibm/issues/4485
# The directory in which the logdna agent will store its state database.
35
-
# Note that the agent must have write access to the directory (handlded by the initContainer) and be a persistent volume.
36
-
log_analysis_agent_db_path="/var/lib/logdna"
28
+
cluster_name=var.is_vpc_cluster? data.ibm_container_vpc_cluster.cluster[0].resource_name: data.ibm_container_cluster.cluster[0].resource_name# Not publically documented in provider. See https://github.com/IBM-Cloud/terraform-provider-ibm/issues/4485
log_analysis_key_validate_msg="Values for 'log_analysis_ingestion_key' and 'log_analysis_instance_region' variables must be passed when 'log_analysis_enabled = true'"
cloud_monitoring_key_validate_msg="Values for 'cloud_monitoring_access_key' and 'log_analysis_instance_region' variables must be passed when 'cloud_monitoring_enabled = true'"
52
39
# tflint-ignore: terraform_unused_declarations
@@ -60,93 +47,6 @@ locals {
60
47
validate_icl_ingress_endpoint=var.logs_agent_enabled==true&& (var.cloud_logs_ingress_endpoint==null|| var.cloud_logs_ingress_endpoint=="") ?tobool("When 'logs_agent_enabled' is enabled, you cannot set 'cloud_logs_ingress_endpoint' as null or empty string.") :true
0 commit comments