Skip to content

Commit a480d01

Browse files
authored
Merge pull request #33 from kabisa/upgrade/switch-to-new-CloudWatchLogs-collector
Upgrade/switch to new cloud watch logs collector
2 parents d60a5f3 + 07e6141 commit a480d01

File tree

5 files changed

+225
-43
lines changed

5 files changed

+225
-43
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ No modules.
6666
| <a name="input_eks_cluster_name"></a> [eks\_cluster\_name](#input\_eks\_cluster\_name) | Name of the EKS cluster | `string` | n/a | yes |
6767
| <a name="input_enable_cloudwatch_agent"></a> [enable\_cloudwatch\_agent](#input\_enable\_cloudwatch\_agent) | Boolean to enable cloudwatch agent | `bool` | n/a | yes |
6868
| <a name="input_enable_fluentbit"></a> [enable\_fluentbit](#input\_enable\_fluentbit) | Boolean to enable fluentbit | `bool` | n/a | yes |
69+
| <a name="input_fluentbit_full_log"></a> [fluentbit\_full\_log](#input\_fluentbit\_full\_log) | Boolean to output full pod/container logs + kubernetes metadata or just the message | `bool` | n/a | yes |
6970
| <a name="input_log_preserve_legacy_log_group"></a> [log\_preserve\_legacy\_log\_group](#input\_log\_preserve\_legacy\_log\_group) | When true, preserves the legacy log group. Mainly useful to transition to the new log group format | `bool` | `true` | no |
7071
| <a name="input_log_retention_in_days"></a> [log\_retention\_in\_days](#input\_log\_retention\_in\_days) | Number of days to retain log events | `number` | `90` | no |
7172
| <a name="input_oidc_host_path"></a> [oidc\_host\_path](#input\_oidc\_host\_path) | n/a | `string` | n/a | yes |

cloudwatch_agent.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ resource "helm_release" "cloudwatch-agent" {
6464
repository = "https://aws.github.io/eks-charts"
6565
chart = "aws-cloudwatch-metrics"
6666
version = "0.0.10"
67-
# appVersion: 1.247350.0b251780
67+
# appVersion: 1.300032.2b361
6868

6969
values = [
7070
templatefile(

fluentbit.tf

+2-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ resource "helm_release" "fluentbit" {
6161
repository = "https://aws.github.io/eks-charts"
6262
chart = "aws-for-fluent-bit"
6363
version = "0.1.32"
64-
# appVersion: v2.21.5
64+
# appVersion: 2.31.12.20231011
6565

6666
values = [
6767
templatefile(
@@ -71,6 +71,7 @@ resource "helm_release" "fluentbit" {
7171
iam_role_arn = aws_iam_role.fluentbit[0].arn
7272
cluster_name = var.eks_cluster_name
7373
log_retention_in_days = var.log_retention_in_days
74+
full_log = var.fluentbit_full_log ? "" : "log"
7475
}
7576
)
7677
]

variables.tf

+5
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ variable "enable_fluentbit" {
2222
description = "Boolean to enable fluentbit"
2323
}
2424

25+
variable "fluentbit_full_log" {
26+
type = bool
27+
description = "Boolean to output full pod/container logs + kubernetes metadata or just the message"
28+
}
29+
2530
variable "eks_cluster_name" {
2631
type = string
2732
description = "Name of the EKS cluster"

0 commit comments

Comments
 (0)