mustash.logstash – Logstash pipeline conversion utilities

mustash.logstash.parse_from_config(raw: str, /) Pipeline

Parse the pipeline from a logstash pipeline.

Parameters:

raw (str) – Raw logstash configuration to read the processors from.

Returns:

Pipeline.

Return type:

Pipeline

mustash.logstash.render_as_filter(pipeline: Pipeline, /) list

Render a list of processors as a Logstash filter body.

Parameters:
  • processors – Pipeline to render.

  • pipeline (Pipeline)

Returns:

Rendered pipeline.

Raises:

ValueError – The pipeline is not renderable as a Logstash pipeline.

Return type:

list