Skip to content

Commit

Permalink
fix: 🐛 output
Browse files Browse the repository at this point in the history
  • Loading branch information
jaskaransarkaria committed Nov 22, 2024
1 parent 6decb5e commit 2be968d
Showing 1 changed file with 40 additions and 2 deletions.
42 changes: 40 additions & 2 deletions configmap.tf
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ resource "kubernetes_config_map" "fluent-bit-config" {
Name tail
Alias modsec_nginx_ingress_debug
Tag cp-ingress-modsec-debug.*
Path /var/log/debug/**/**/*
Path /var/log/debug/debug.log
Refresh_Interval 5
Buffer_Max_Size 5MB
Buffer_Chunk_Size 1M
Expand Down Expand Up @@ -117,7 +117,7 @@ resource "kubernetes_config_map" "fluent-bit-config" {
[OUTPUT]
Name opensearch
Alias modsec_nginx_ingress_audit
Match *
Match cp-ingress-modsec-audit.*
Host ${var.opensearch_modsec_audit_host}
Port 443
Type _doc
Expand All @@ -132,6 +132,44 @@ resource "kubernetes_config_map" "fluent-bit-config" {
AWS_REGION eu-west-2
Suppress_Type_Name On
Buffer_Size False
[OUTPUT]
Name opensearch
Alias modsec_nginx_ingress_stdout
Match cp-ingress-modsec-stdout.*
Host ${var.opensearch_modsec_audit_host}
Port 443
Type _doc
Time_Key @timestamp
Logstash_Prefix ${var.cluster}_k8s_modsec_ingress
tls On
Logstash_Format On
Replace_Dots On
Generate_ID On
Retry_Limit False
AWS_AUTH On
AWS_REGION eu-west-2
Suppress_Type_Name On
Buffer_Size False
[OUTPUT]
Name opensearch
Alias modsec_nginx_ingress_debug
Match cp-ingress-modsec-debug.*
Host ${var.opensearch_modsec_audit_host}
Port 443
Type _doc
Time_Key @timestamp
Logstash_Prefix ${var.cluster}_k8s_modsec_ingress_debug
tls On
Logstash_Format On
Replace_Dots On
Generate_ID On
Retry_Limit False
AWS_AUTH On
AWS_REGION eu-west-2
Suppress_Type_Name On
Buffer_Size False
EOT

"custom_parsers.conf" = <<-EOT
Expand Down

0 comments on commit 2be968d

Please sign in to comment.