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?
Log Files
-
- Posts: 336
- Joined: Sat Aug 15, 2015 7:41 pm
Re: Log Files
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
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
-
- Posts: 7
- Joined: Fri Oct 21, 2016 11:41 am
Re: Log Files
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.
> 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.
-
- Posts: 336
- Joined: Sat Aug 15, 2015 7:41 pm
Re: Log Files
Windows also has symbolic links.
Not sure though whether they have the same logic, please give it a try
Not sure though whether they have the same logic, please give it a try