XFERLOG(5)

✨ XFERLOG(5) ✨

okay bestie, welcome to the File Formats Manual, section 5, and today's main character is xferlog β€” the ProFTPD server logfile. πŸ’…


🌸 NAME 🌸

xferlog β€” the ProFTPD server logfile 🫢


πŸŽ€ DESCRIPTION πŸŽ€

So the xferlog file is literally where all the logging tea from the FTP server daemon, proftpd(8), gets written. πŸ’– It usually lives in /var/log but honestly it can be anywhere you want, because you can point at it with a proftpd(8) configuration directive. Location is a vibe, not a rule.

Every single server entry is just one line, and all the fields are separated by spaces. The shape of it is this, no cap:

current-time   transfer-time   remote-host   file-size
filename   transfer-type   special-action-flag   direction
access-mode   username   service-name   authentication-method
authenticated-user-id  completion-status

And now the field-by-field breakdown, because we are not skipping anything here:

  • current-time β€” the current local time, formatted like "DDD MMM dd hh:mm:ss YYYY". Where DDD is the day of the week, MMM is the month, dd is the day of the month, hh is the hour, mm is the minutes, ss is the seconds, and YYYY is the year. ⏰
  • transfer-time β€” the total time in seconds for the transfer. ⏱️
  • remote-host β€” the remote host name. 🌐
  • file-size β€” the size of the transferred file in bytes. πŸ“
  • filename β€” the name of the transferred file. And listen: if the filename contains any spaces or control characters, each such character gets replaced by an underscore ('_') character. She gets sanitised, periodt. 🚫
  • transfer-type β€” a single character telling you the type of transfer. Can be one of:
    • a β€” for an ascii transfer
    • b β€” for a binary transfer
  • special-action-flag β€” one or more single character flags showing any special action that was taken. Can be one or more of:
    • C β€” file was compressed
    • U β€” file was uncompressed
    • T β€” file was tar'ed
    • _ β€” no action was taken
  • direction β€” the direction of the transfer. Can be one of:
    • o β€” outgoing
    • i β€” incoming
    • d β€” deleted
  • access-mode β€” the method by which the user is logged in. Can be one of:
    • a β€” (anonymous) is for an anonymous guest user.
    • r β€” (real) is for a local authenticated user.
  • username β€” the local username, or if guest, the ID string given. πŸͺͺ
  • service-name β€” the name of the service being invoked, usually FTP. πŸ”₯
  • authentication-method β€” the method of authentication used. Can be one of:
    • 0 β€” none
    • 1 β€” RFC931 Authentication
  • authenticated-user-id β€” the user id returned by the authentication method. A * is used if an authenticated user id is not available. ⭐
  • completion-status β€” a single character showing the status of the transfer. Can be one of:
    • c β€” complete transfer
    • i β€” incomplete transfer

πŸ¦‹ FILES πŸ¦‹

  • /var/log/xferlog

πŸ‘‘ AUTHORS πŸ‘‘

ProFTPD is written and maintained by a number of people, full credits can be found on http://www.proftpd.org/credits.html β€” shoutout to the whole squad fr fr. πŸ™Œ


🌈 SEE ALSO 🌈


and that's the whole page, bestie β€” XFERLOG(5), from the File Formats Manual, written and maintained by the ProFTPD girlies themselves πŸŽ€ that's a wrap, slay, go log something iconic βœ¨πŸ’–

πŸ“¦ where this page comes from