An SRX administrator wants to send or trigger a single Syslog message from an SRX device to a remote Syslog server for testing and validation purposes.
This can be useful when verifying Syslog connectivity, validating message parsing on the Syslog server, or confirming that Syslog forwarding is working as expected.
The following conditions apply:
There is no direct CLI command on the SRX platform to generate and send a standalone Syslog message to a remote Syslog server.
However, the following procedure can be used to achieve the same result by leveraging the local logger utility and configuring the SRX to forward matching Syslog messages to the remote Syslog server.
Configure the remote Syslog server to receive WARNING level messages and filter for a unique test tag.
set system syslog host <Syslog_Server_IP> any warning
set system syslog host <Syslog_Server_IP> match TEST-LOG
Step 2: Configure Security Logging Mode
set security log mode stream
commit
Step 3: Generate a Test Syslog Message
Enter the shell and use the logger command to generate a WARNING-level Syslog message containing the configured match string.
logger
SRX> start shell user root
SRX# logger -p WARNING "TEST-LOG: Manual test verification line"
The Syslog server should successfully capture and display the message generated:
The message severity is configured as WARNING.
The message contains the string TEST-LOG, which matches the configured filter.
The SRX forwards the matching Syslog entry to the configured remote Syslog server.
N/A