After adding J-Series, EX, or SRX device in NSM, no system logs are seen in NSM log viewer.
Added a Junos devices into NSM using device not reachable workflow. Upon successfully importing the device, no system logs are shown in NSM log viewer. This applies to JUNOS with enhanced services on J-Series, Junos for SRX, and Junos for EX switches.
By default NSM queries for logs on the device. In particular NSM queries for a log file called "default-log-messages". When adding a device using the "device reachable" workflow, NSM will automatically add this log file to the configuration. However, when using "device not reachable" workflow, you must manually add this configuration. Add a log file called "default-log-messages" and specify structured data. Below is an example:
set system syslog file default-log-messages any set system syslog user * any emergency set system syslog file messages any any set system syslog file messages authorization info set system syslog file interactive-commands interactive-commands any set system syslog file default-log-messages any any set system syslog file default-log-messages structured-data