[Request] New log system

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
Nobody
Posts: 11
Joined: Mon Aug 08, 2016 7:13 am

[Request] New log system

Post by Nobody » Sun Oct 09, 2016 6:07 pm

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?
Last edited by Nobody on Mon Oct 17, 2016 5:29 pm, edited 1 time in total.

moatazelmasry
Posts: 336
Joined: Sat Aug 15, 2015 7:41 pm

Re: [Request] New log system

Post by moatazelmasry » Mon Oct 17, 2016 4:13 pm

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

Nobody
Posts: 11
Joined: Mon Aug 08, 2016 7:13 am

Re: [Request] New log system

Post by Nobody » Mon Oct 17, 2016 5:24 pm

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

moatazelmasry
Posts: 336
Joined: Sat Aug 15, 2015 7:41 pm

Re: [Request] New log system

Post by moatazelmasry » Tue Oct 18, 2016 12:59 pm

@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

Nobody
Posts: 11
Joined: Mon Aug 08, 2016 7:13 am

Re: [Request] New log system

Post by Nobody » Wed Oct 19, 2016 6:53 pm

Yeah that would be better. Thanks.

Post Reply