We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64cd514 commit 1940920Copy full SHA for 1940920
internal/datasource/config/nginx_config_parser.go
@@ -262,7 +262,7 @@ func (ncp *NginxConfigParser) createNginxConfigContext(
262
slog.WarnContext(ctx, fmt.Sprintf("Could not find available local NGINX App Protect syslog"+
263
" server configured on port %s. Security violations will not be collected.",
264
ncp.agentConfig.SyslogServer.Port))
265
- } else {
+ } else if napEnabled && nginxConfigContext.NAPSysLogServer != "" {
266
slog.InfoContext(ctx, fmt.Sprintf("Found available local NGINX App Protect syslog"+
267
"server configured on port %s", ncp.agentConfig.SyslogServer.Port))
268
}
0 commit comments