Skip to content

SecAuditLogType HTTPS blocking requests #1929

@ledzepp4eva

Description

@ledzepp4eva

Hey,
I've been testing the new SecAuditLogType HTTPS setting, but sending the requests to logstash. This is so far working fine, however I noticed in DetectionOnly mode requests are blocked until the logs have been sent and modsecurity has received an ACK from logstash. Once the ACK has been received the rest of the page loads fine, however this does cause a delay in the requests which is not ideal.

Thanks,
Liam

Config

  # Log Directory                                                                                                       
  SecAuditLog http://xxx.xxx.xxx.xxx:port                                                                                                                                                      
  SecAuditEngine RelevantOnly                                                                                           
  SecAuditLogRelevantStatus "^(?:5|4(?!04))"                                                                            
  SecAuditLogParts ABCFHZ                                                                                               
  SecAuditLogType HTTPS                                                                                                                                                                                              
  SecAuditLogFormat JSON                                                                                                
  SecAuditLogDirMode 0755                                                                                               
  SecAuditLogFileMode 0644

Output from dev tools
Modsec Detectiononly
modsec_detection_only

Modsec off
modsec_off

modsec on
modsec_enforcing

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions