Get your free beta license ↗
CMDCommand · run as root on the server · modsec family

urbestack-modsec-sort

First published 19 Nov 20260.2.30Unchanged since publication

Usage

# urbestack-modsec-sort

Description

From the command's --help output
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.

More in modsec

13 commands, by what they work onView all commands in this family →
urbestack-modsec-disabled-
urbestack-modsec-disabled-rule-
urbestack-modsec-rule-
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/