Here is my output from cscli metrics
> cscli metrics
INFO[10-12-2021 11:19:57 PM] Buckets Metrics:
+-------------------------------------------+---------------+-----------+--------------+--------+---------+
| BUCKET | CURRENT COUNT | OVERFLOWS | INSTANCIATED | POURED | EXPIRED |
+-------------------------------------------+---------------+-----------+--------------+--------+---------+
| crowdsecurity/http-bad-user-agent | - | 1 | 1 | 2 | - |
| crowdsecurity/http-crawl-non_statics | - | - | 20 | 21 | 20 |
| crowdsecurity/http-path-traversal-probing | - | - | 1 | 1 | 1 |
| crowdsecurity/http-probing | - | - | 12 | 13 | 12 |
+-------------------------------------------+---------------+-----------+--------------+--------+---------+
INFO[10-12-2021 11:19:57 PM] Acquisition Metrics:
+----------------------------------------+------------+--------------+----------------+------------------------+
| SOURCE | LINES READ | LINES PARSED | LINES UNPARSED | LINES POURED TO BUCKET |
+----------------------------------------+------------+--------------+----------------+------------------------+
| file:/var/log/auth.log | 20 | - | 20 | - |
| file:/var/log/kern.log | 1712 | - | 1712 | - |
| file:/var/log/nginx/access.log | 30 | 30 | - | 27 |
| file:/var/log/nginx/XXXX_access.log | 678 | 678 | - | 9 |
| file:/var/log/nginx/XXXX_access.log | 12 | 12 | - | - |
| file:/var/log/nginx/XXXXXXX_access.log | 162 | 162 | - | - |
| file:/var/log/nginx/XXXXX_access.log | 8 | 8 | - | 1 |
| file:/var/log/nginx/XXXXX_errors.log | 4 | 4 | - | - |
| file:/var/log/syslog | 1826 | - | 1826 | - |
+----------------------------------------+------------+--------------+----------------+------------------------+
INFO[10-12-2021 11:19:57 PM] Parser Metrics:
+--------------------------------+------+--------+----------+
| PARSERS | HITS | PARSED | UNPARSED |
+--------------------------------+------+--------+----------+
| child-crowdsecurity/http-logs | 2682 | 1968 | 714 |
| child-crowdsecurity/nginx-logs | 898 | 894 | 4 |
| crowdsecurity/dateparse-enrich | 894 | 894 | - |
| crowdsecurity/geoip-enrich | 894 | 894 | - |
| crowdsecurity/http-logs | 894 | 850 | 44 |
| crowdsecurity/nginx-logs | 894 | 894 | - |
| crowdsecurity/non-syslog | 894 | 894 | - |
| crowdsecurity/syslog-logs | 3558 | 3558 | - |
| crowdsecurity/whitelists | 1788 | 1788 | - |
+--------------------------------+------+--------+----------+
INFO[10-12-2021 11:19:57 PM] Local Api Metrics:
+----------------------+--------+------+
| ROUTE | METHOD | HITS |
+----------------------+--------+------+
| /v1/alerts | GET | 2 |
| /v1/alerts | POST | 1 |
| /v1/decisions/stream | GET | 1670 |
| /v1/watchers/login | POST | 9 |
+----------------------+--------+------+
INFO[10-12-2021 11:19:57 PM] Local Api Machines Metrics:
+--------------------------------------------------+------------+--------+------+
| MACHINE | ROUTE | METHOD | HITS |
+--------------------------------------------------+------------+--------+------+
| xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | /v1/alerts | GET | 2 |
| xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | /v1/alerts | POST | 1 |
+--------------------------------------------------+------------+--------+------+
INFO[10-12-2021 11:19:57 PM] Local Api Bouncers Metrics:
+----------------------------+----------------------+--------+------+
| BOUNCER | ROUTE | METHOD | HITS |
+----------------------------+----------------------+--------+------+
| FirewallBouncer-1639155106 | /v1/decisions/stream | GET | 1670 |
+----------------------------+----------------------+--------+------+
I have two questions about this output:
- How do I know bans are working?
- Why are some lines marked as UNPARSED?
Iād also like to extend bans because they seem to last about 3 hours by default which isnāt nearly enough for me (Iād like a few months at least), how can I do this?
Iāve just started using this tool but I already like it a lot, thank you for developing it!
Thanks in advance for your answers!