Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

show security log query

Show Security Log Query

Show Security Log Stream

Description

  • show security log query—View the security log from the database with query conditions.

  • show security log stream file—View all the security log messages in the specified log file. Use the /var/log/ hostlogs directory to search the specified log file, and use the show security log stream file command to view logs in log files in the /var/log/hostlogs directory.

Options

  • count—The log number to output.

  • scr-ip—The source IP address of log messages.

  • dst-ip—The destination IP address of log messages.

  • src-port—The source port of log messages.

  • dst-port—The destination port of log messages.

  • application—The application of log messages.

  • user—The user of log messages.

  • event-type—The event type of log messages.

  • service—The service of log messages.

  • start-time—The earliest timestamp of log messages; the format for time is YYYY-MM-DDTHH:MM:SS.

  • stop-time—The latest timestamp of log messages.

Required Privilege Level

view

Sample Output

show security log query

show security log stream file <file-name>

Release Information

Command introduced in Junos OS Release 15.1X49-D70.