vsftpd log file location?
Can someone tell me where is located the log file for vsftpd? I'm trying to learn how to install and configure a ftp server and I can't seem to find the log file. Can anybody tell me how to configure the service to make a log file or where is located?
Solution 1:
The log file for Ubuntu by default is /var/log/vsftpd.log
. The setting is in /etc/vsftpd.conf
The default could be modified by specifying a different pathname (/etc/vsftp.conf
entry):
# You may override where the log file goes if you like. The default is shown
# below.
#xferlog_file=/var/log/vsftpd.log
Solution 2:
Sometimes it happens that the log is not filling any data, because the file doesn't exist. Create a log file:
touch /var/log/vsftpd.log
Then
service vsftpd restart