grep processes
Full details:
pgrep -a syslog
Only PID:
pgrep syslog