Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnrichedEvent ¶
EnrichedEvent is an event that has been annotated additional context
func (*EnrichedEvent) GetMessage ¶
func (e *EnrichedEvent) GetMessage(ruleID int) *types.Message
GetMessage returns the message generated by the specified rule ID, or nil if no message was generated for this event.
func (*EnrichedEvent) RequestHeaders ¶
func (e *EnrichedEvent) RequestHeaders() http.Header
RequestHeaders returns the request headers from this event as an http.Header map
type Handler ¶
type Handler interface {
Handle(*EnrichedEvent) error
}
Handler for a ModSecurity audit event
func NewLoggerHandler ¶
NewLoggerHandler creates an audit event handler that logs via the logrus log stream
func NewMetricsHandler ¶
func NewMetricsHandler(registry prometheus.Registerer, namespace string) (Handler, error)
NewMetricsHandler creates a PrometheusAuditMetrics with the specified registry and namespace
Click to show internal directories.
Click to hide internal directories.