You can use the following command in a script and add a cron job to run this script every 1 minute
Code:
netstat | grep 'ftp\|telnet' **** /var/log/custom.log
You will have to create the directory /var/log if it does not exist
edit: for some reason the forum replaces the two > from the command with stars