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

Method ProcessStatics

pkg/parser/runtime.go:213–221  ·  view source on GitHub ↗
(event *pipeline.Event)

Source from the content-addressed store, hash-verified

211}
212
213func (n *Node) ProcessStatics(event *pipeline.Event) error {
214 for _, rs := range n.RuntimeStatics {
215 if err := rs.Apply(event, n.EnrichFunctions, n.Logger, n.Debug); err != nil {
216 return fmt.Errorf("applying %s: %w", rs.Config.targetExpr(), err)
217 }
218 }
219
220 return nil
221}
222
223func (rg *RuntimeGrokPattern) ProcessStatics(event *pipeline.Event, ectx EnricherCtx, logger *log.Entry, debug bool) error {
224 for _, rs := range rg.RuntimeStatics {

Callers 2

processMethod · 0.95
processGrokMethod · 0.45

Calls 2

targetExprMethod · 0.80
ApplyMethod · 0.45

Tested by

no test coverage detected