This article provides information on how to configure IDP logs on SRX series devices.
# set security idp idp-policy recommended rulebase-ips rule 1 then notification log-attacks
2. Enable security loggin:
*Using stream mode root@srx# show security log mode stream; stream IDP_Log { format syslog; category idp; host { 10.1.1.100; } source-address 192.168.0.1; } _________________________________________ *Using event mode[edit]root@srx# show security logmode event;[edit]root@srx# show system syslogfile IDP_log { any any; match RT_IDP;}
*Using stream mode
root@srx# show security log mode stream; stream IDP_Log { format syslog; category idp; host { 10.1.1.100; } source-address 192.168.0.1; }
_________________________________________
*Using event mode[edit]root@srx# show security logmode event;
[edit]root@srx# show system syslogfile IDP_log { any any; match RT_IDP;}
> show log IDP_Log
If using stream mode you can review the logs in the external collector.
If you are not receiving as many messages as required, disable log suppression:
# set security idp sensor-configuration log suppression disable
10-21-2023: Added more details and example to collect the logs either locally or in external collector.
Details of security log modes (event, steam, stream-event).
https://www.juniper.net/documentation/us/en/software/junos/network-mgmt/topics/ref/statement/security-edit-mode-security-logging.html