Would it be possible, that the logs have a new system like this:
The log of today is simply named eg sec.log. At a specific time (Midnight) Soft Ether creates a folder (OLD) and moves the log in OLD and renames it to sec_<DATE>. Then log reading programs like fail2ban have a easier way to read the logs and as admin you can delete the logs after a time / EDIT: <SoftEther deletes the log after a week / month /...> What do you think?
[Request] New log system
-
- Posts: 11
- Joined: Mon Aug 08, 2016 7:13 am
[Request] New log system
Last edited by Nobody on Mon Oct 17, 2016 5:29 pm, edited 1 time in total.
-
- Posts: 336
- Joined: Sat Aug 15, 2015 7:41 pm
Re: [Request] New log system
This is a nice feature actually.
I suggest you open a ticket on github with this idea
In the meantime you can use the logrotate program on Linux to achieve that.
Regards
I suggest you open a ticket on github with this idea
In the meantime you can use the logrotate program on Linux to achieve that.
Regards
-
- Posts: 11
- Joined: Mon Aug 08, 2016 7:13 am
Re: [Request] New log system
Yep. You're right. I am using logrotate but I'm not 100% satisfied because I don't know if SoftEther likes that with the "missing" log.
https://github.com/SoftEtherVPN/SoftEtherVPN/issues/260
https://github.com/SoftEtherVPN/SoftEtherVPN/issues/260
-
- Posts: 336
- Joined: Sat Aug 15, 2015 7:41 pm
Re: [Request] New log system
@nobody not necessary. Do not move the file with logrotate, you can just opt to copy it. This is better because if you choose to move the file, then you need a way to append the moved files of the same day together
-
- Posts: 11
- Joined: Mon Aug 08, 2016 7:13 am
Re: [Request] New log system
Yeah that would be better. Thanks.