Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 🐛 output #111

Merged
merged 1 commit into from
Nov 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading