pattern_tagger

pattern_tagger #

CategoryScope
Recordrecord

Configuration #

FieldTypeDefaultDescription
logpilot_urlstringLogPilot API base, e.g. http://127.0.0.1:29000
api_tokenstringoptional X-API-TOKEN for protected deployments
stream_idstringwhose merged pattern set to fetch
fieldstring“message”source field containing the raw line (default message)
max_distancefloat640.60..1 (default 0.6, same as the plugin)
ignore_missingbooltruefield absent => no-op (default true)
max_field_lengthint10000guard rail; longer lines are “skipped” (default 10000, <=0 disables)
resolve_top_levelbooltruemap matched leaf to top-level ancestor (default true)
refresh_intervalstring“60s”snapshot refresh cadence (default 60s)
request_timeoutstringHTTP timeout per fetch (default 15s)
target_pattern_idstring“@pattern_id”Field receiving the matched pattern’s identifier.
target_pattern_hashstring“@pattern_hash”Field receiving the matched pattern’s hash.
target_pattern_distancestring“@pattern_distance”Field receiving the matched pattern’s edit distance.
target_pattern_scorestring“@pattern_score”Field receiving the matched pattern’s score.
target_pattern_severitystring“@pattern_severity”Field receiving the matched pattern’s severity.
target_pattern_statusstring“@pattern_status”Field receiving the matched pattern’s status.

Example #

processor:
  - pattern_tagger:
      logpilot_url: "logpilot_url"
      api_token: "api_token"
      stream_id: "stream_id"
      field: "message"
      max_distance: 10
Edit Edit this page