Troubleshooting
If the Security Monitoring module doesn’t receive a security violation event, the attack data is lost.
F5 WAF for NGINX supports logging to multiple destinations. You can send logs to NGINX Agent and keep a backup. If Security Monitoring doesn’t receive security events, check the backup log to verify attack details. Use the following settings to turn on backup logging:
-
For an instance with Security Monitoring only:
nginx app_protect_policy_file "/etc/app_protect/conf/NginxDefaultPolicy.json"; app_protect_security_log_enable on; app_protect_security_log "/etc/app_protect/conf/log_sm.json" syslog:server=127.0.0.1:514; app_protect_security_log "/etc/app_protect/conf/log_sm.json" <Path to store log file>; # Example: app_protect_security_log "/etc/app_protect/conf/log_sm.json" /var/log/app_protect/security.log; -
For an instance with Security Monitoring and F5 NGINX Instance Manager:
nginx app_protect_policy_file "/etc/nms/NginxDefaultPolicy.tgz"; app_protect_security_log_enable on; app_protect_security_log "/etc/nms/secops_dashboard.tgz" syslog:server=127.0.0.1:514; app_protect_security_log "/etc/nms/secops_dashboard.tgz" <Path to store log file>; # Example: app_protect_security_log "/etc/nms/secops_dashboard.tgz" /var/log/app_protect/security.log;
If NGINX Instance Manager doesn’t receive security events from a NGINX Gateway Fabric deployment, the Security Monitoring dashboard shows no data for that deployment.
Check the following on NGINX Instance Manager, in order:
-
Confirm the embedded OpenTelemetry collector is turned on. In
nms.conf, verifycollector_config.enableis set totrue:yaml collector_config: enable: trueIf you change this setting, restart the service:
sudo systemctl restart nms -
Confirm NGINX Instance Manager is reachable from the Kubernetes cluster on port
4317(gRPC). -
Confirm the log profile referenced in the
WAFPolicyresource exists in NGINX Instance Manager and matches exactly. A mismatched or missing profile name causes events to arrive without expected fields, or not arrive at all.
If these checks pass and events still don’t appear, the problem is likely on the NGINX Gateway Fabric side. See Security events aren’t reaching NGINX Instance Manager and Export security logs to F5 NGINX Instance Manager.
If you need more help, see the following topics: