I have installed my first Crowdsec instance and have installed a collection for Keycloak.
But it does not ban any IPs.
Keycloak is running in a Docker container.
Collection:
inherent-io/keycloak
Acquiss:
#Generated acquisition file - wizard.sh (service: nginx) / files :
journalctl_filter:
- _SYSTEMD_UNIT=nginx.service
labels:
type: nginx
---
#Generated acquisition file - wizard.sh (service: ssh) / files :
journalctl_filter:
- _SYSTEMD_UNIT=ssh.service
labels:
type: syslog
---
source: docker
container_name:
- keycloak
#container_id:
# - 6ae66a948965
labels:
type: keycloak
Metrics:
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโฌโโโโโโโโโฌโโโโโโโโโโโฎ
โ Parsers โ Hits โ Parsed โ Unparsed โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโผโโโโโโโโโผโโโโโโโโโโโค
โ child-inherent-io/keycloak-logs โ 18 โ - โ 18 โ
โ crowdsecurity/non-syslog โ 18 โ 18 โ - โ
โ inherent-io/keycloak-logs โ 18 โ - โ 18 โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโดโโโโโโโโโดโโโโโโโ
Docker logs:
2024-05-06 20:39:13,513 WARN [org.keycloak.events] (executor-thread-1) type=LOGIN_ERROR, realmId=7fb34d1f-ea30-4f13-ab20-f6910f191f59, clientId=security-admin-console, userId=null, ipAddress=91.xx.xx.xx, error=user_not_found, auth_method=openid-connect, auth_type=code, redirect_uri=https://keycloak.xxxxx.xxxx/admin/master/console/, code_id=8a8cd4b2-5236-435e-80ef-14e672d6f895, username=dsfsd@sdfsdf.de
2024-05-06 20:40:15,094 WARN [org.keycloak.events] (executor-thread-1) type=LOGIN_ERROR, realmId=7fb34d1f-ea30-4f13-ab20-f6910f191f59, clientId=security-admin-console, userId=null, ipAddress=xx.xx.xx.xx, error=user_not_found, auth_method=openid-connect, auth_type=code, redirect_uri=https://keycloak.xxxx.xxx/admin/master/console/, code_id=8a8cd4b2-5236-435e-80ef-14e672d6f895, username=sadas
2024-05-06 20:40:16,353 WARN [org.keycloak.events] (executor-thread-1) type=LOGIN_ERROR, realmId=7fb34d1f-ea30-4f13-ab20-f6910f191f59, clientId=security-admin-console, userId=null, ipAddress=xx.xx.xx.xx, error=user_not_found, auth_method=openid-connect, auth_type=code, redirect_uri=https://keycloak.xxxx.xxxx/admin/master/console/, code_id=8a8cd4b2-5236-435e-80ef-14e672d6f895, username=sadas
2024-05-06 20:40:19,124 WARN [org.keycloak.events] (executor-thread-1) type=LOGIN_ERROR, realmId=7fb34d1f-ea30-4f13-ab20-f6910f191f59, clientId=security-admin-console, userId=null, ipAddress=xx.xx.xx.xx, error=user_not_found, auth_method=openid-connect, auth_type=code, redirect_uri=https://keycloak.xxxxx.xxxxx/admin/master/console/, code_id=8a8cd4b2-5236-435e-80ef-14e672d6f895, username=sadas
i donโt have the experience with crowdsec to find the error. Can anyone give me a tip?
Greetings
Hank75
(Sorry for bad English)