CMDCommand · run as root on the server · modsec family
urbestack-modsec-sort
First published 19 Nov 2026
0.2.30Unchanged since publicationUsage
# urbestack-modsec-sortDescription
From the command's --help outputSorts ModSecurity audit records into domain logs. The urbestack-modsec-sort.timer runs it every minute when the server or at least one domain uses logging or blocking and ModSecurity has written records to process. The command drops records for requests that matched a rule but scored below the threshold. It strips request bodies and retains five headers. It appends each retained record to modsec.log alongside the domain's other logs, or to a separate log for requests that match no domain in UrbeStack. It rotates a domain's log before appending if the file exceeds 50 MB, and removes the source records after processing them. The result counts records sorted, dropped and left waiting. A nonzero unreadable count indicates a job error reading one or more complete records.Usage: urbestack-modsec-sort Sorts ModSecurity audit records into domain logs. The urbestack-modsec-sort.timer runs it every minute when the server or at least one domain uses logging or blocking and ModSecurity has written records to process. The command drops records for requests that matched a rule but scored below the threshold. It strips request bodies and retains five headers. It appends each retained record to modsec.log alongside the domain's other logs, or to a separate log for requests that match no domain in UrbeStack. It rotates a domain's log before appending if the file exceeds 50 MB, and removes the source records after processing them. The result counts records sorted, dropped and left waiting. A nonzero unreadable count indicates a job error reading one or more complete records.
Generated from release 0.2.35 (current) · urbestack-modsec-sort --help outputThis entry has been unchanged since it was first published in release 0.2.30 on 19 Nov 2026.
urbestack.com/docs/commands/urbestack-modsec-sort/