Sometimes I know the program but not the unit that started it. Then I give journalctl the file.
An absolute path is a valid match. For an executable binary journalctl adds an _EXE= match with the canonical path, for a script it matches _COMM= with the script name. Symbolic links are followed first.
journalctl -b /usr/sbin/sshd
The file must exist when you run the query, and you only get entries that carry that field. A program that logs through another process will not show up under its own path.
Further reading: journalctl(1) manual page