In Cisco IOS, if you had logging configured, by default you could see logs on console, or using terminal monitor
with a terminal connection.
It’s almost the same with JunOS. You have to get your logging parameters configured and then entering monitor start LOG_FILENAME
moghaddas@ebay-de-core-srx1> show configuration system syslog archive size 100k files 3; user * { any emergency; } file messages { any warning; authorization info; }
{primary:node0} moghaddas@ebay-de-core-srx1> monitor start messages *** messages *** May 26 11:12:11 srx sshd[42209]: Accepted publickey for moghaddas from 192.168.72.17 port 38972 ssh2: RSA db:88:71:21:36:dc:09:6a:20:db:53:22:14:6b:54:17 May 26 11:12:29 ebay-de-core-srx1 sshd[42209]: Received disconnect from 192.168.72.17: 11: disconnected by user May 26 11:12:29 ebay-de-core-srx1 inetd[1474]: /usr/sbin/sshd[42209]: exited, status 255
{primary:node0} moghaddas@ebay-de-core-srx1> monitor stop messages