-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dc0c72d
commit bf5a6a3
Showing
3 changed files
with
40 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
title: Resolving no logs in modsec OpenSearch | ||
weight: 190 | ||
last_reviewed_on: 2023-09-22 | ||
review_in: 6 months | ||
--- | ||
|
||
# Modsec logging architecture | ||
|
||
[Please read up on the architecture first](https://github.com/ministryofjustice/cloud-platform-terraform-ingress-controller/#cloud-platform-terraform-ingress-controller) | ||
|
||
## Deebugging | ||
|
||
The first place to look is in the fluent bit side car logs | ||
|
||
``` | ||
stern modsec --container flb-modsec-audit-logs -n ingress-controllers | ||
``` | ||
|
||
This should give you a clue to the issue. Once you resolve this issue. Logs may not immediately come back, this might be because logs are stuck retrying, if this is the case then restart the deployment | ||
|
||
```bash | ||
kubectl rollout restart deployment/nginx-ingress-modsec-controller -n ingress-controllers | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters