Skip to content

Question regarding rotating logs of modsec #2470

Closed
@albgen

Description

@albgen

Hello dears,

i'm running modsec on latest nginx on centos7. The problem is that i cannot rotate the logs with logrotate.

My logrotate config file for modsec is the following:

/var/log/modsec_audit.log {
daily
rotate 7
missingok
compress
postrotate
[ ! -f /var/run/nginx.pid ] || kill -USR1 cat /var/run/nginx.pid
endscript
}

Metadata

Metadata

Assignees

Labels

3.xRelated to ModSecurity version 3.x

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions