View and analyze Linux ProFTPD logs

Source: Internet
Author: User
Tags ftp client

The company uses FTP to receive the customer's EDI order. Recently, the customer said that the order has been sent to us through FTP a long time ago. Why haven't it been delivered yet, but after repeated checks, the order was not found on FTP, but the customer insisted that the order had been uploaded. It seems that only the operation logs on FTP could be viewed to solve the dispute, and data could be used to speak.

The company's FTP is built based on the ProFTPd software in Linux. First, check the ProFTPd configuration file:

VI/etc/ProFTPd. conf

Find the path of the log file, as shown in red circles.

Truncate the log Content of an FTP account and save it to a new file: (in the following example, the account is ftpwbshop)

Cat xferlog. Processed | grep ftpwbshop>/home/ftpwbshop. Log

You can get the following logs for multiple lines:

Thu Dec 3 10:46:32 2009 0 120.32.171.4 2236/vhost/vhostroot/cycxm2/www/uploadfile/20090307132822145.jpg A _ d r cycxm2 FTP 0 * C
Each parameter of the record corresponds to the following:
Current-time transmission time Fri Jan 9 10:07:20 2004
Transfer-time transmission Duration: 0 s
Remote-host remote FTP client address 192.168.0.88
File-size Transfer File Size 320 B
File-name transfer file name/home/redflag/partitioninfo
Transfer-type transmission type B indicates binary transmission, and a indicates ASCII Transmission
Special-action-flag special behavior flag _, C indicates the compressed file, u indicates not compressed, t indicates to be tar, _ indicates no special behavior
Direction I: Upload, O: download, and D: Delete
Access-mode R indicates the System user, and a indicates the anonymous user.
Username username redflag
Service-Name: name of the FTP server software called
Authentication-method authentication method. 0 indicates no
Authen-ticated-user-ID * indicates that no user ID is authenticated.
Completion-status transmission completion status C indicates completion, And I indicates completion

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.