Skip to content

Commit

Permalink
feat: 🎸 push modsec logs from modsec controller
Browse files Browse the repository at this point in the history
  • Loading branch information
jaskaransarkaria committed Dec 20, 2023
1 parent ec21267 commit 3394de4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configmap.tf
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ resource "kubernetes_config_map" "fluent-bit-config" {
[INPUT]
Name tail
Alias modsec_nginx_ingress
Alias modsec_nginx_ingress_stdout
Tag cp-ingress-modsec-stdout.*
Path /var/log/containers/ingress-controllers_nginx-ingress-modsec-controller*.log
Parser cri-containerd
Expand All @@ -75,7 +75,7 @@ resource "kubernetes_config_map" "fluent-bit-config" {
regex log (ModSecurity-nginx|modsecurity|OWASP_CRS|owasp-modsecurity-crs)
[FILTER]
Name kubernetes
Alias modsec_nginx_ingress
Alias modsec_nginx_ingress_stdout
Match cp-ingress-modsec-stdout.*
Kube_Tag_Prefix cp-ingress-modsec-stdout.var.log.containers.
Kube_URL https://kubernetes.default.svc:443
Expand Down

0 comments on commit 3394de4

Please sign in to comment.