SolarWinds | Serv-U
Contact Support: 866-530-8040 | Contact Sales: 855-498-4154 or email | Show Flags | Login
Serv-U FTP Server Home Page
The Best for Less
Secure file transfer & share files
from anywhere - affordably

FREE for 14 Days
Full featured trial with secure
FTP, file sharing & web transfer


Saving Serv-U Event Information To Files   -  KB Article #1789

Related Articles -- 1783

Serv-U Events allow administrators to send emails, trigger balloon tips and run custom commands on events like upload, download, file, server start, login failure and more. In some cases it may be desirable to save this information to a file in order to review it later or feed into an existing log analysis engine. This can be done easily by way of the "Execute Command" event and the ECHO command. To do so, follow the directions below:

  1. In the "Executable Path" field, type C:\Windows\System32\CMD.exe (depending on your OS, you may need to substitute "WINNT" for "Windows")
  2. In the "Command Line Parameters" field, enter the text to write to the file using your text and any applicable Serv-U System Variables, starting with /C "ECHO and ending with another quotation mark, e.g.:
    /C "ECHO User $Name Has Logged In from $IP " >> C:\Logs\Serv-U-EventLog.txt
  3. The contents of C:\Logs\Serv-U-EventLog.txt appear as follows (see attached): User test Has Logged In (FTP) from (

NOTE: If only one event should be saved per file, use '>' instead of '>>' to write a new file on each event.