I have a simple script that takes a users input for a
remote host address
printf "\nEnter the customers Cloud URL:\n"
read -r customerURL
printf "\nWhich log do you want to tail?\n1. JLOG\n2. CLOG\n3. HLOG\n"
read -r whichlog
tail -f /path/to/log
Combine the ssh and the tail so the tail runs on the remote host instead of the local one.
ssh "$customerURL" tail -f /path/to/log