We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0119cf7 commit 8921cd1Copy full SHA for 8921cd1
views.py
@@ -354,9 +354,11 @@ def generate_filter_config(config):
354
"""
355
# Create a regex pattern that matches the status codes
356
status_codes_pattern = '|'.join(config.status_codes.split(','))
357
+
358
+ # Example fail regex: failregex = ^"?<HOST> - - \[.*?\] "(GET|POST|HEAD|PUT|DELETE) .*? HTTP/.*?" (401|403|404|500)
359
360
return f"""[Definition]
- failregex = ^<HOST> -.*"(GET|POST).*" [{status_codes_pattern}]
361
+ failregex = ^"?<HOST> - - \[.*?\] "(GET|POST|HEAD|PUT|DELETE) .*? HTTP/.*?" ({status_codes_pattern})
362
ignoreregex =
363
364
0 commit comments