-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding ModSecurity parameter for audit log format. #2583
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,6 +32,9 @@ | |
# | ||
# @param audit_log_type | ||
# Defines the type of audit logging mechanism to be used. | ||
# | ||
# @param audit_log_format | ||
# Defines what format the logs should be written in. Accepts `Native` and `JSON`. | ||
# | ||
# @param audit_log_storage_dir | ||
# Defines the directory where concurrent audit log entries are to be stored. This directive is only needed when concurrent audit logging is used. | ||
|
@@ -143,6 +146,7 @@ | |
String $audit_log_relevant_status = '^(?:5|4(?!04))', | ||
String $audit_log_parts = $apache::params::modsec_audit_log_parts, | ||
String $audit_log_type = $apache::params::modsec_audit_log_type, | ||
Enum['Native', 'JSON'] $audit_log_format = $apache::params::modsec_audit_log_format, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Put the default value here instead. That way, the default value is correctly documented in the generated documentation. |
||
Optional[Stdlib::Absolutepath] $audit_log_storage_dir = undef, | ||
Integer $secpcrematchlimit = $apache::params::secpcrematchlimit, | ||
Integer $secpcrematchlimitrecursion = $apache::params::secpcrematchlimitrecursion, | ||
|
@@ -256,6 +260,7 @@ | |
'audit_log_relevant_status' => $audit_log_relevant_status, | ||
'audit_log_parts' => $audit_log_parts, | ||
'audit_log_type' => $audit_log_type, | ||
'audit_log_format' => $audit_log_format, | ||
'audit_log_storage_dir' => $audit_log_storage_dir, | ||
'logroot' => $logroot, | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,7 @@ | |
|
||
$modsec_audit_log_parts = 'ABIJDEFHZ' | ||
$modsec_audit_log_type = 'Serial' | ||
$modsec_audit_log_format = 'Native' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don't put the default value in params.pp |
||
$modsec_custom_rules = false | ||
$modsec_custom_rules_set = undef | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to list accepted values, as the documentation include the data type (and the default value).