Processing Detailsedit

Understanding how Logstash works and how components interrelate can help you make better decisions when you are setting up or adjusting your Logstash environment. This section is designed to elevate concepts to assist with that level of knowledge.

This is a new section. We’re still working on it.

Event orderingedit

By design and by default, Logstash does not guarantee event order. Reordering can occur in two places:

  • Events within a batch can be reordered during filter processing.
  • In-flight batches can be reordered when one or more batches are processed faster than others.

When maintaining event order is important, use a single worker and set pipeline.ordered ⇒ true. This approach ensures that batches are computed one-after-the-other, and that events maintain their order within the batch.

pipeline.ordered settingedit

The pipeline.ordered setting in logstash.yml gives you more control over event ordering for single worker pipelines.

auto automatically enables ordering if the pipeline.workers setting is also set to 1. true will enforce ordering on the pipeline and prevent logstash from starting if there are multiple workers. false will disable the processing required to preserve order. Ordering will not be guaranteed, but you save the processing cost required to preserve order.

Java pipeline initialization timeedit

The Java pipeline initialization time appears in the startup logs at INFO level. Initialization time is the time it takes to compile the pipeline config and instantiate the compiled execution for all workers.