Page 1 of 1

[Request] New log system

Posted: Sun Oct 09, 2016 6:07 pm
by Nobody
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?

Re: [Request] New log system

Posted: Mon Oct 17, 2016 4:13 pm
by moatazelmasry
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

Re: [Request] New log system

Posted: Mon Oct 17, 2016 5:24 pm
by Nobody
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

Re: [Request] New log system

Posted: Tue Oct 18, 2016 12:59 pm
by moatazelmasry
@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

Re: [Request] New log system

Posted: Wed Oct 19, 2016 6:53 pm
by Nobody
Yeah that would be better. Thanks.