#StackBounty: #macos #ssh #macos-mojave #syslog How to get SSH logs and send to remote syslog server in macOS?

Bounty: 50

On Linux, I can get sshd logs such as:

sshd Accepted publickey for user from xxx.xxx.xxx.xxx port xxx ssh2: RSA SHA256:.....

and send them to a remote syslog server by adding a file in /etc/rsyslog.d/

How can I get similar data on MacOS 10.14 (Mojave), and also have macOS send the data to a remote syslog server?

I can get the data I want using this command:

log stream --process sshd --info --predicate "messageType = 'info'"

Now need to figure out how to configure ASL (Apple System Logger).

Get this bounty!!!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.