Log Files

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
Alex1978
Posts: 7
Joined: Fri Oct 21, 2016 11:41 am

Log Files

Post by Alex1978 » Wed Nov 09, 2016 2:47 am

Would like to ensure that we can keep all log activity but the log files seem to be getting rather large.

Setup a secondary drive just for logs but the logging options don't allow you to configure the location of the logs. Is there a way to change the log file location?

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

Re: Log Files

Post by moatazelmasry » Wed Nov 09, 2016 10:29 pm

Just create a symlink

Say softether is installed under /opt/vpnserver
And you want to have the logs under /media/external

Stop the server
mkdir /media/external/server_log
rm -rf /opt/vpnserver/server_log
ln -sf /media/external/server_log /opt/vpnserver/server_log
Give the directory the same owner,group and chmod
start the vpn server

Alex1978
Posts: 7
Joined: Fri Oct 21, 2016 11:41 am

Re: Log Files

Post by Alex1978 » Wed Nov 09, 2016 10:41 pm

moatazelmasry wrote:
> Just create a symlink
>
> Say softether is installed under /opt/vpnserver
> And you want to have the logs under /media/external
>
> Stop the server
> mkdir /media/external/server_log
> rm -rf /opt/vpnserver/server_log
> ln -sf /media/external/server_log /opt/vpnserver/server_log
> Give the directory the same owner,group and chmod
> start the vpn server

I was thinking symbolic links.

This however is a windows system.

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

Re: Log Files

Post by moatazelmasry » Thu Nov 10, 2016 12:15 am

Windows also has symbolic links.

Not sure though whether they have the same logic, please give it a try

Post Reply