fail2ban / How to correctly setup Log file? #1418
Replies: 6 comments
-
Not sure what the From the python docs - possible values are:
I would suggest setting it to |
Beta Was this translation helpful? Give feedback.
-
I need to log the IP of the requester like it is mentioned here: #547 |
Beta Was this translation helpful? Give feedback.
-
@Loader23 Which part of the stuff above do you not want? It seems like there is something doing something like |
Beta Was this translation helpful? Give feedback.
-
I assume it's running inside a docker container (maybe this one: docker-radicale). The curl command is doing a health check ( |
Beta Was this translation helpful? Give feedback.
-
Hello, I've run into the same issue while attempting to use fail2ban to monitor radicale's log. I'm using Radicale 2.1.11, and set log level to INFO. However, the log messages produced for failed attempts do not include the source IP address. Specifically in
Could we change this to include Specifically, I'd like this:
If I could be picky, I wish Python's logging module included a "notice" level like syslog, that was between the "info" and "warning" levels, so then I could raise my log level to just "notice" and skip the numerous "info" messages... But I'll be happy with any sort of remote IP logging for failed authentications. Thank you, |
Beta Was this translation helpful? Give feedback.
-
fail2ban examples for current 3.x versions were updated now: https://github.com/Kozea/Radicale/wiki/Fail2Ban-Setup |
Beta Was this translation helpful? Give feedback.
-
Hi,
i want include Radicale log files in fail2ban but don't know how to set it up.
I have this log conf:
But the logfiles get spammed with this:
2019-01-08 21:57:36,717 - [7fe02e170ae8] INFO: GET request for '/' received from 127.0.0.1 using 'curl/7.61.1' 2019-01-08 21:57:36,719 - [7fe02e170ae8] INFO: GET response status for '/' in 0.002 seconds: 302 Found 2019-01-08 21:58:06,846 - [7fe02e170ae8] INFO: GET request for '/' received from 127.0.0.1 using 'curl/7.61.1' 2019-01-08 21:58:06,849 - [7fe02e170ae8] INFO: GET response status for '/' in 0.003 seconds: 302 Found 2019-01-08 21:58:36,976 - [7fe02e170ae8] INFO: GET request for '/' received from 127.0.0.1 using 'curl/7.61.1' 2019-01-08 21:58:36,978 - [7fe02e170ae8] INFO: GET response status for '/' in 0.002 seconds: 302 Found 2019-01-08 21:59:07,104 - [7fe02e170ae8] INFO: GET request for '/' received from 127.0.0.1 using 'curl/7.61.1' 2019-01-08 21:59:07,106 - [7fe02e170ae8] INFO: GET response status for '/' in 0.002 seconds: 302 Found
How do I set it up so that it only logs the relevant things?
Beta Was this translation helpful? Give feedback.
All reactions