Page 1 of 1
Log Files
Posted: Wed Nov 09, 2016 2:47 am
by Alex1978
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?
Re: Log Files
Posted: Wed Nov 09, 2016 10:29 pm
by moatazelmasry
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
Re: Log Files
Posted: Wed Nov 09, 2016 10:41 pm
by Alex1978
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.
Re: Log Files
Posted: Thu Nov 10, 2016 12:15 am
by moatazelmasry
Windows also has symbolic links.
Not sure though whether they have the same logic, please give it a try