diff --git a/templates/hap_listener.tpl b/templates/hap_listener.tpl index 275d7d3..cbb6f82 100644 --- a/templates/hap_listener.tpl +++ b/templates/hap_listener.tpl @@ -214,13 +214,7 @@ frontend web http-request capture var(txn.threat_score) len 10 # Enhanced logging format with glitch information - log-format "%{+json}o \ - %(client_ip)[var(txn.real_ip)] \ - %(threat_score)[var(txn.threat_score)] \ - %(glitches)[fc_glitches] \ - %(h2_streams)[fc_nb_streams] \ - %(user_agent)[capture.req.hdr(1)] \ - %(threat_level)[res.hdr(X-Threat-Level)]" + log-format "%{+json}o %(client_ip)[var(txn.real_ip)] %(threat_score)[var(txn.threat_score)] %(glitches)[fc_glitches] %(h2_streams)[fc_nb_streams] %(user_agent)[capture.req.hdr(1)] %(threat_level)[res.hdr(X-Threat-Level)]" # Set log level based on threat score http-request set-log-level info if { var(txn.threat_score) -m int lt 20 }