-
Notifications
You must be signed in to change notification settings - Fork 488
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
crowdsec explain ooms #3469
Comments
@bjo81: Thanks for opening an issue, it is currently awaiting triage. In the meantime, you can:
DetailsI am a bot created to help the crowdsecurity developers manage community feedback and contributions. You can check out my manifest file to understand my behavior and what I can do. If you want to use this for your project, you can check out the BirthdayResearch/oss-governance-bot repository. |
Since the DSN is invoking the journalctl binary you should be able to pass the
But yeah any options you can pass to journalctl you can pass them as query opts. |
What happened?
Unfortunately, the dovecot and postfix scenarios didn't seem to work as expected, so I wanted to try
But crowdsec ate 6GB of memory (the system has 8GB memory and 4GB swap) and got oomkilled.
What did you expect to happen?
Getting an explaination of the log parser. Maybe some restriction regarding the time period would be helpful.
How can we reproduce it (as minimally and precisely as possible)?
Try to use a journalctl journal of 14 days.
Anything else we need to know?
No response
Crowdsec version
OS version
Enabled collections and parsers
Acquisition config
Global:
Configuration Folder : /etc/crowdsec
Data Folder : /var/lib/crowdsec/data
Hub Folder : /etc/crowdsec/hub
Simulation File : /etc/crowdsec/simulation.yaml
Log Folder : /var/log
Log level : info
Log Media : file
Crowdsec:
Acquisition File : /etc/crowdsec/acquis.yaml
Parsers routines : 1
Acquisition Folder : /etc/crowdsec/acquis.d
cscli:
Output : human
Hub Branch :
API Client:
URL : http://127.0.0.1:8080/
Login : c067eae1ebe243b29bc7d3ba65520ef95otiH8edD5H18qr3
Credentials File : /etc/crowdsec/local_api_credentials.yaml
Local API Server:
Listen URL : 127.0.0.1:8080
Listen Socket :
Profile File : /etc/crowdsec/profiles.yaml
Trusted IPs:
Database:
╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Acquisition Metrics │
├───────────────────────────────────────────────────────┬────────────┬──────────────┬────────────────┬────────────────────────┬───────────────────┤
│ Source │ Lines read │ Lines parsed │ Lines unparsed │ Lines poured to bucket │ Lines whitelisted │
├───────────────────────────────────────────────────────┼────────────┼──────────────┼────────────────┼────────────────────────┼───────────────────┤
│ file:/var/log/nginx/access.log │ 440.42k │ 440.42k │ - │ 58.06k │ 24.93k │
│ file:/var/log/nginx/error.log │ 27.55k │ 27.55k │ - │ 13.82k │ 6 │
│ journalctl:journalctl-%s_SYSTEMD_UNIT=dovecot.service │ 2.04k │ 593 │ 1.45k │ 7 │ 128 │
│ journalctl:journalctl-%s_SYSTEMD_UNIT=postfix.service │ 7.76k │ 1.95k │ 5.81k │ 1.95k │ - │
│ journalctl:journalctl-%s_SYSTEMD_UNIT=sshd.service │ 832 │ 460 │ 372 │ 1.13k │ - │
╰───────────────────────────────────────────────────────┴────────────┴──────────────┴────────────────┴────────────────────────┴───────────────────╯
╭────────────────────────────────────────────────────╮
│ Local API Alerts │
├────────────────────────────────────────────┬───────┤
│ Reason │ Count │
├────────────────────────────────────────────┼───────┤
│ crowdsecurity/ssh-slow-bf │ 1 │
│ crowdsecurity/CVE-2022-41082 │ 1 │
│ crowdsecurity/apache_log4j2_cve-2021-44228 │ 1 │
│ crowdsecurity/http-bad-user-agent │ 9 │
│ crowdsecurity/netgear_rce │ 1 │
│ crowdsecurity/postfix-spam │ 1 │
│ crowdsecurity/ssh-bf │ 71 │
╰────────────────────────────────────────────┴───────╯
╭───────────────────────────────────────────────────────────────────────────────────────────╮
│ Bouncer Metrics (crowdsec-firewall-bouncer) since 2025-02-14 17:14:18 +0000 UTC │
├────────────────────────────┬──────────────────┬───────────────────┬───────────────────────┤
│ Origin │ active_decisions │ dropped │ processed │
│ │ IPs │ bytes │ packets │ bytes │ packets │
├────────────────────────────┼──────────────────┼─────────┼─────────┼───────────┼───────────┤
│ CAPI (community blocklist) │ 23.89k │ 938.36k │ 15.76k │ - │ - │
│ crowdsec (security engine) │ 18 │ 132.92k │ 2.09k │ - │ - │
├────────────────────────────┼──────────────────┼─────────┼─────────┼───────────┼───────────┤
│ Total │ 23.91k │ 1.07M │ 17.85k │ 16.48G │ 35.48M │
╰────────────────────────────┴──────────────────┴─────────┴─────────┴───────────┴───────────╯
╭─────────────────────────────────────────────────────────────────────────╮
│ Local API Decisions │
├─────────────────────────────────────────────┬──────────┬────────┬───────┤
│ Reason │ Origin │ Action │ Count │
├─────────────────────────────────────────────┼──────────┼────────┼───────┤
│ crowdsecurity/apache_log4j2_cve-2021-44228 │ crowdsec │ ban │ 1 │
│ crowdsecurity/apache_log4j2_cve-2021-44228 │ CAPI │ ban │ 31 │
│ crowdsecurity/fortinet-cve-2018-13379 │ CAPI │ ban │ 15 │
│ crowdsecurity/http-generic-bf │ CAPI │ ban │ 19 │
│ crowdsecurity/http-path-traversal-probing │ CAPI │ ban │ 158 │
│ crowdsecurity/jira_cve-2021-26086 │ CAPI │ ban │ 8 │
│ crowdsecurity/CVE-2024-9474 │ CAPI │ ban │ 1 │
│ crowdsecurity/http-crawl-non_statics │ CAPI │ ban │ 636 │
│ crowdsecurity/nextcloud-bf │ CAPI │ ban │ 2 │
│ crowdsecurity/ssh-slow-bf │ CAPI │ ban │ 4304 │
│ crowdsecurity/CVE-2023-22515 │ CAPI │ ban │ 3 │
│ crowdsecurity/http-backdoors-attempts │ CAPI │ ban │ 480 │
│ crowdsecurity/netgear_rce │ CAPI │ ban │ 210 │
│ crowdsecurity/spring4shell_cve-2022-22965 │ CAPI │ ban │ 3 │
│ crowdsecurity/CVE-2022-37042 │ CAPI │ ban │ 4 │
│ crowdsecurity/nginx-req-limit-exceeded │ CAPI │ ban │ 438 │
│ crowdsecurity/CVE-2022-35914 │ CAPI │ ban │ 4 │
│ crowdsecurity/http-bad-user-agent │ CAPI │ ban │ 4407 │
│ crowdsecurity/http-bad-user-agent │ crowdsec │ ban │ 1 │
│ crowdsecurity/ssh-cve-2024-6387 │ CAPI │ ban │ 91 │
│ crowdsecurity/CVE-2024-0012 │ CAPI │ ban │ 3 │
│ crowdsecurity/dovecot-spam │ CAPI │ ban │ 770 │
│ crowdsecurity/http-admin-interface-probing │ CAPI │ ban │ 600 │
│ crowdsecurity/http-cve-2021-41773 │ CAPI │ ban │ 115 │
│ crowdsecurity/http-cve-probing │ CAPI │ ban │ 10 │
│ crowdsecurity/http-wordpress-scan │ CAPI │ ban │ 970 │
│ crowdsecurity/ssh-bf │ CAPI │ ban │ 4577 │
│ crowdsecurity/ssh-bf │ crowdsec │ ban │ 14 │
│ crowdsecurity/thinkphp-cve-2018-20062 │ CAPI │ ban │ 65 │
│ crowdsecurity/CVE-2022-26134 │ CAPI │ ban │ 15 │
│ crowdsecurity/CVE-2023-49103 │ CAPI │ ban │ 76 │
│ crowdsecurity/grafana-cve-2021-43798 │ CAPI │ ban │ 5 │
│ crowdsecurity/http-open-proxy │ CAPI │ ban │ 1764 │
│ crowdsecurity/postfix-spam │ CAPI │ ban │ 237 │
│ crowdsecurity/postfix-spam │ crowdsec │ ban │ 1 │
│ crowdsecurity/vmware-vcenter-vmsa-2021-0027 │ CAPI │ ban │ 2 │
│ ltsich/http-w00tw00t │ CAPI │ ban │ 2 │
│ crowdsecurity/CVE-2017-9841 │ CAPI │ ban │ 267 │
│ crowdsecurity/CVE-2023-22518 │ CAPI │ ban │ 2 │
│ crowdsecurity/f5-big-ip-cve-2020-5902 │ CAPI │ ban │ 4 │
│ crowdsecurity/http-cve-2021-42013 │ CAPI │ ban │ 27 │
│ crowdsecurity/http-probing │ CAPI │ ban │ 3273 │
│ crowdsecurity/http-sensitive-files │ CAPI │ ban │ 272 │
│ crowdsecurity/CVE-2019-18935 │ CAPI │ ban │ 24 │
╰─────────────────────────────────────────────┴──────────┴────────┴───────╯
╭──────────────────────────────────────╮
│ Local API Metrics │
├──────────────────────┬────────┬──────┤
│ Route │ Method │ Hits │
├──────────────────────┼────────┼──────┤
│ /v1/alerts │ POST │ 69 │
│ /v1/decisions/stream │ GET │ 5446 │
│ /v1/heartbeat │ GET │ 907 │
│ /v1/usage-metrics │ POST │ 91 │
│ /v1/watchers/login │ POST │ 16 │
╰──────────────────────┴────────┴──────╯
╭──────────────────────────────────────────────────────────────────╮
│ Local API Bouncers Metrics │
├───────────────────────────┬──────────────────────┬────────┬──────┤
│ Bouncer │ Route │ Method │ Hits │
├───────────────────────────┼──────────────────────┼────────┼──────┤
│ crowdsec-firewall-bouncer │ /v1/decisions/stream │ GET │ 5446 │
╰───────────────────────────┴──────────────────────┴────────┴──────╯
╭──────────────────────────────────────────────────────────────────────────────────╮
│ Local API Machines Metrics │
├──────────────────────────────────────────────────┬───────────────┬────────┬──────┤
│ Machine │ Route │ Method │ Hits │
├──────────────────────────────────────────────────┼───────────────┼────────┼──────┤
│ c067eae1ebe243b29bc7d3ba65520ef95otiH8edD5H18qr3 │ /v1/heartbeat │ GET │ 907 │
│ c067eae1ebe243b29bc7d3ba65520ef95otiH8edD5H18qr3 │ /v1/alerts │ POST │ 69 │
╰──────────────────────────────────────────────────┴───────────────┴────────┴──────╯
╭───────────────────────────────────────────────────────────────────────╮
│ Parser Metrics │
├────────────────────────────────────────┬─────────┬─────────┬──────────┤
│ Parsers │ Hits │ Parsed │ Unparsed │
├────────────────────────────────────────┼─────────┼─────────┼──────────┤
│ child-child-crowdsecurity/postfix-logs │ 4.33k │ 10 │ 4.32k │
│ child-crowdsecurity/dovecot-logs │ 6.39k │ 593 │ 5.80k │
│ child-crowdsecurity/http-logs │ 1.40M │ 951.42k │ 452.46k │
│ child-crowdsecurity/nginx-logs │ 495.55k │ 467.96k │ 27.59k │
│ child-crowdsecurity/postfix-logs │ 19.94k │ 1.95k │ 17.99k │
│ child-crowdsecurity/sshd-logs │ 8.08k │ 460 │ 7.62k │
│ child-crowdsecurity/syslog-logs │ 10.63k │ 10.63k │ - │
│ crowdsecurity/dateparse-enrich │ 470.96k │ 470.96k │ - │
│ crowdsecurity/dovecot-logs │ 2.04k │ 593 │ 1.45k │
│ crowdsecurity/geoip-enrich │ 470.96k │ 470.96k │ - │
│ crowdsecurity/http-logs │ 467.96k │ 467.95k │ 12 │
│ crowdsecurity/nextcloud-whitelist │ 467.96k │ 467.96k │ - │
│ crowdsecurity/nginx-logs │ 467.96k │ 467.96k │ - │
│ crowdsecurity/non-syslog │ 467.96k │ 467.96k │ - │
│ crowdsecurity/postfix-logs │ 6.27k │ 1.95k │ 4.32k │
│ crowdsecurity/sshd-logs │ 828 │ 460 │ 368 │
│ crowdsecurity/syslog-logs │ 10.63k │ 10.63k │ - │
│ crowdsecurity/whitelists │ 470.96k │ 470.96k │ - │
╰────────────────────────────────────────┴─────────┴─────────┴──────────╯
╭──────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Scenario Metrics │
├────────────────────────────────────────────┬───────────────┬───────────┬──────────────┬────────┬─────────┤
│ Scenario │ Current Count │ Overflows │ Instantiated │ Poured │ Expired │
├────────────────────────────────────────────┼───────────────┼───────────┼──────────────┼────────┼─────────┤
│ LePresidente/http-generic-403-bf │ - │ - │ 10 │ 20 │ 10 │
│ crowdsecurity/CVE-2022-41082 │ - │ 2 │ 2 │ - │ - │
│ crowdsecurity/apache_log4j2_cve-2021-44228 │ - │ 2 │ 2 │ - │ - │
│ crowdsecurity/dovecot-spam │ - │ - │ 7 │ 7 │ 7 │
│ crowdsecurity/http-admin-interface-probing │ - │ - │ 1 │ 2 │ 1 │
│ crowdsecurity/http-backdoors-attempts │ - │ - │ 1 │ 1 │ 1 │
│ crowdsecurity/http-bad-user-agent │ - │ 11 │ 11 │ 22 │ - │
│ crowdsecurity/http-crawl-non_statics │ 26 │ - │ 48.64k │ 50.34k │ 48.61k │
│ crowdsecurity/http-probing │ 44 │ - │ 19.57k │ 21.48k │ 19.53k │
│ crowdsecurity/http-sensitive-files │ - │ - │ 18 │ 18 │ 18 │
│ crowdsecurity/netgear_rce │ - │ 2 │ 2 │ - │ - │
│ crowdsecurity/postfix-spam │ - │ 2 │ 1.06k │ 1.95k │ 1.06k │
│ crowdsecurity/ssh-bf │ - │ 59 │ 108 │ 456 │ 49 │
│ crowdsecurity/ssh-bf_user-enum │ - │ - │ 65 │ 108 │ 65 │
│ crowdsecurity/ssh-slow-bf │ - │ 1 │ 66 │ 456 │ 65 │
│ crowdsecurity/ssh-slow-bf_user-enum │ - │ - │ 65 │ 108 │ 65 │
╰────────────────────────────────────────────┴───────────────┴───────────┴──────────────┴────────┴─────────╯
╭────────────────────────────────────────────────────────────────────────────────╮
│ Whitelist Metrics │
├───────────────────────────────────┬─────────────────────┬────────┬─────────────┤
│ Whitelist │ Reason │ Hits │ Whitelisted │
├───────────────────────────────────┼─────────────────────┼────────┼─────────────┤
│ crowdsecurity/nextcloud-whitelist │ Nextcloud Whitelist │ 467960 │ - │
│ crowdsecurity/whitelists │ my ip ranges │ 470960 │ 25066 │
╰───────────────────────────────────┴─────────────────────┴────────┴─────────────╯
The text was updated successfully, but these errors were encountered: