Skip to content

ModSecurity logs to the Windows event log with Event ID 0 instead of -1 #676

@sarvasana

Description

@sarvasana

Below is an example of a message logged by ModSecurity on Windows. To my knowledge, when the EventId is unknown, the event should be logged with EventId set to -1 (minus 1). This would probably prevent the EventId 0 cannot be found message from being logged with every message.

Example:

The description for Event ID 0 from source ModSecurity cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

If the event originated on another computer, the display information had to be saved with the event.

The following information was included with the event:

real message being logged

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions