Kill all processes using the file /var/log/syslog, then print the first field of the output of the command and use it as an argument to the kill command with the signal 9.
fuser -kv /var/log/syslog | awk -F: '{print $1}' | xargs kill -9