MCPcopy
hub / github.com/crowdsecurity/crowdsec / ProcessStatics

Method ProcessStatics

pkg/parser/runtime.go:223–231  ·  view source on GitHub ↗
(event *pipeline.Event, ectx EnricherCtx, logger *log.Entry, debug bool)

Source from the content-addressed store, hash-verified

221}
222
223func (rg *RuntimeGrokPattern) ProcessStatics(event *pipeline.Event, ectx EnricherCtx, logger *log.Entry, debug bool) error {
224 for _, rs := range rg.RuntimeStatics {
225 if err := rs.Apply(event, ectx, logger, debug); err != nil {
226 return fmt.Errorf("applying %s: %w", rs.Config.targetExpr(), err)
227 }
228 }
229
230 return nil
231}
232
233func Parse(ctx UnixParserCtx, event pipeline.Event, nodes []Node, collector *StageParseCollector) (pipeline.Event, error) {
234 /* the stage is undefined, probably line is freshly acquired, set to first stage !*/

Callers

nothing calls this directly

Calls 2

targetExprMethod · 0.80
ApplyMethod · 0.45

Tested by

no test coverage detected