This article explains the procedure to configure IDP logs on the SRX device and how to send them to the SDI(Security Director Insight - Log Collector) and how to verify the logs status from SDI.
# set security idp idp-policy recommended rulebase-ips rule 1 then notification log-attacks
Enable security login
Using stream mode:
root@srx# show security logmode stream;stream IDP_Log { format syslog; category idp; host { 10.2.3.4; } source-address 192.168.1.2;}
root@srx# show security log
mode stream;
stream IDP_Log {
format syslog;
category idp;
host {
10.2.3.4;
}
source-address 192.168.1.2;
Here,
"host 10.2.3.4" --> SRX interface where it sends the logs to SDI
10.2.3.4
"source-address 192.168.1.2" --> SDI interface where the SRX logs are received
192.168.1.2
Using event mode:
root@srx# show security logmode event;
mode event;
root@srx# show system syslogfile IDP_log { any any; match RT_IDP;}
root@srx# show system syslog
file IDP_log {
any any;
match RT_IDP;
> show log IDP_Log
Note: This is not recommended for a prolonged time, as it will cause a lot of logs to be created over a short time; depending on traffic and attacks.# set security idp sensor-configuration log suppression to disable
================================================================================================
# tcpdump -i eth0 -vv -nn -xX host <device_ip_address> and port 514
:CORE# server :CORE# set support enable on Remote support duration (In Hours): 24 ------> Here you have to enter the hours for which the cysupport account will be active. For eg., 24. This means the cysupport account will be active for 24 hours. :CORE# show support-access-key plain ------> This command provides the support account access key.
# tcpdump -i eth0 -vv -nn -xX host <device_ip_address> and port 514 | grep -i "RT_FLOW"
# tcpdump -i eth0 -vv -nn -xX host <device_ip_address> and port 514 | grep -i "RT_IDP"