v9.5.6 Server-side data processing pipeline
LogStash download, configure and run Logstash pipelines
Logstash collects events from logs, agents, queues and databases, reshapes them into structured fields and ships them to Elasticsearch or wherever your data needs to go. This page covers the current Windows download, what each part of a pipeline does and how to get one running.
- Bundled JavaNo separate JDK install
- Portable ZIPExtract and run on Windows
- Plugin-basedInputs, filters, outputs
01 Executive summary
What is LogStash?
Logstash is an open, plugin-based engine that sits between the systems producing data and the systems storing it, turning raw events into consistent, searchable records.
Originally created by Jordan Sissel and developed by Elastic, it is the “L” in the ELK stack
alongside Elasticsearch and Kibana. A pipeline reads events with input plugins, transforms them with filters
such as grok, date, mutate and geoip, and writes them
out with output plugins. Each stage is configured in a short text file, so the same pipeline runs unchanged
on a laptop, a server or a container.
Teams reach for Logstash when data arrives in many shapes and needs cleaning before it is useful: web server logs that should become fields, security events that need enrichment, database rows that should be indexed, or streams that must be split between several destinations. The engine runs on the Java virtual machine and ships with its own runtime.
Key facts
- Category
- Data collection and processing pipeline
- Developed by
- Elastic
- Written in
- Java and Ruby (JRuby)
- Configuration
- Text pipeline files plus YAML settings
- Default distribution
- Elastic License
02 Capabilities
LogStash features at a glance
Eight capabilities cover what most deployments use. Each one is delivered by plugins that you combine in a pipeline file.
Inputs for almost any source
Read files, receive Beats and syslog traffic, consume Kafka topics, poll databases with JDBC, accept HTTP posts and pull from cloud storage. Several inputs can feed one pipeline.
Grok, dissect and structured codecs
Turn unstructured lines into fields with named grok patterns or fast delimiter-based dissect, and decode JSON, CSV, key=value and multiline records.
Add context on the way through
Look up GeoIP locations, translate codes from dictionaries, query Elasticsearch or a database for related data, and normalise timestamps with the date filter.
Conditionals and multiple pipelines
Send events to different filters and outputs with if conditions, or split workloads into
isolated pipelines that pass events to each other.
Outputs beyond Elasticsearch
Index into Elasticsearch data streams, or write to Kafka, S3-compatible storage, files, HTTP endpoints and other systems, several at once if needed.
Persistent and dead letter queues
Buffer events on disk so a restart or a slow destination does not lose data, and keep rejected events for later inspection instead of dropping them.
Monitoring API and OTLP metrics
Read throughput, worker utilisation and back-pressure from the API on port 9600. Since 9.5, Logstash can also export its metrics to OpenTelemetry endpoints.
Keystore and TLS that reloads
Keep passwords and API keys in the Logstash keystore. Since 9.5, pipelines reload automatically when TLS certificates are rotated on disk.
03 Process
How LogStash works, from download to first event
Four stages take you from the archive to a running pipeline. The full commands are in the installation section further down.
-
Download01
Get the ZIP
Fetch the Windows x86_64 archive from the download section and check its SHA-512 checksum.
logstash-9.5.6-windows-x86_64.zip -
Extract02
Unpack to a short path
Extract to a folder such as
C:\logstash. The bundled JDK means there is no Java to install.tar -xf logstash-9.5.6-...zip -C C:\ -
Configure03
Write a pipeline
Describe inputs, filters and outputs in a
.conffile inside theconfigfolder.input { stdin {} } output { stdout {} } -
Run04
Start and verify
Test the syntax, start Logstash and confirm events flow, then check the API on port 9600.
bin\logstash.bat -f config\first.conf
04 Platforms
Compatibility and available builds
Elastic builds Logstash for Windows, Linux, macOS and containers. Exact operating system versions are listed in Elastic’s support matrix.
| Platform | Package | Architecture | Notes |
|---|---|---|---|
| Windows | ZIP archive this download | x86_64 | Linked on this page. Run bin\logstash.bat; use a service wrapper for
background running. |
| Linux (archive) | tar.gz | x86_64aarch64 | Extract anywhere and run bin/logstash as a non-root user. |
| Debian, Ubuntu | deb package / apt repository | x86_64aarch64 | Installs a systemd service that runs as the logstash user. |
| RHEL, Rocky, SUSE and others | rpm package / yum repository | x86_64aarch64 | Same layout as the deb package: settings in /etc/logstash. |
| macOS | tar.gz | x86_64aarch64 | Clear the quarantine flag with xattr -d -r com.apple.quarantine after
extracting. |
| Docker | Container image | amd64arm64 | docker.elastic.co/logstash/logstash:9.5.6, based on UBI 9 Minimal. |
Java and the wider stack
Every build bundles a Java 21 runtime; Java 17 and 21 are supported through LS_JAVA_HOME.
Logstash works with Elasticsearch, Kibana and Beats from the same major version, and with non-Elastic
systems through its plugins. Download Now
05 Release information
What’s in Logstash 9.5.6
A patch release on the 9.5 series. The 9.4 and 8.19 lines received matching updates on the same day.
Java runtime trust store update
- Bundled JDK moves to Temurin 21.0.13+9, which stops trusting an eMudhra (emSign) root certificate authority. The Windows package stays on Temurin 21.0.12.1 with that authority removed.
- Jackson and Guava dependency updates.
- Kafka integration 12.2.1 adds share-group consumers (Kafka 4.0 and later).
Security and runtime updates
- Fixes for potential security vulnerabilities.
- Bundled JDK 21.0.12.1 and JRuby 10.0.7.0; Netty updated in the Beats, HTTP and TCP inputs.
Series highlights
- Metrics export to OpenTelemetry endpoints with
otel.metrics.enabled: true. - Pipelines reload automatically when TLS certificates are rotated on disk.
- cgroupv2 support and a new
dead_letter_queue.flush_check_intervalsetting.
default and uniform_sticky partitioners are
removed), the pipe output is no longer bundled, and the legacy output concurrency mode is
gone.06 Assessment
LogStash pros and cons
Where Logstash earns its place in a data stack, and where a lighter or different tool may suit better.
Strengths 6 points
-
Broad plugin catalogue. Inputs, filters and outputs exist for most common systems, so many pipelines need no code.
-
Powerful parsing. Grok, dissect, date and enrichment filters handle messy real-world formats.
-
Durability options. Persistent and dead letter queues protect against restarts and rejected events.
-
Tight Elastic Stack fit. ECS field names, data streams and Kibana work together out of the box.
-
Readable configuration. Pipelines are short text files that are easy to review and keep in version control.
-
Runs anywhere. Windows, Linux, macOS and containers, with the Java runtime included.
Trade-offs 6 points
-
JVM footprint. Memory use and startup time are higher than lightweight shippers such as Filebeat.
-
Grok has a learning curve. Patterns need care to stay fast and correct.
-
Tuning takes measurement. Workers, batch size and heap interact, so throughput problems need data.
-
No Windows installer. Running as a service needs a wrapper such as NSSM.
-
Upgrade attention. Minor releases can change bundled plugins, as 9.5 did with Kafka and the pipe output.
-
Licence terms vary. The default distribution uses the Elastic License, which matters if you redistribute it.
07 Download
Download LogStash 9.5.6 for Windows
A portable ZIP containing Logstash, its default plugins and a bundled Java runtime. Extract it, add a pipeline file and start it from Command Prompt.
- Version 9.5.6
- Windows 64-bit (x86_64)
- ZIP archive
- Java included
09 Use cases
Where teams use LogStash
The same input–filter–output model covers very different jobs. These are the patterns that come up most often.
-
Centralised application and web logging
Collect access and application logs from many servers, parse them into fields and index them so incidents can be searched and graphed in Kibana.
-
Security event pipelines
Normalise firewall, authentication and audit logs into common field names, enrich IP addresses with location data and forward them to a SIEM or Elasticsearch.
-
Database change ingestion
Poll relational databases with the JDBC input on a schedule and index new or changed rows for search, using a tracking column to pick up where the last run stopped.
-
Stream processing around Kafka
Consume topics, filter and reshape messages, and publish them to other topics or stores, using Kafka as a buffer between producers and Logstash.
-
Archiving and compliance copies
Send one copy of every event to cheap object storage while indexing a filtered subset for day-to-day search.
-
Migrating data between clusters
Read documents from one Elasticsearch cluster with the Elasticsearch input, transform fields on the way and write them to another.
11 Installation
Install and set up LogStash on Windows
The commands below assume Command Prompt and the 9.5.6 ZIP. Notes for other platforms are alongside.
-
Extract the archive
Use a short path without spaces. Windows 10 and 11 include
tar, which extracts large ZIPs much faster than File Explorer.tar -xf logstash-9.5.6-windows-x86_64.zip -C C:\ ren C:\logstash-9.5.6 logstash -
Create a first pipeline
Save this as
C:\logstash\config\first.conf:input { stdin { } } output { stdout { codec => rubydebug } } -
Check the configuration
From
C:\logstash, validate the file without starting it. ExpectConfiguration OK.bin\logstash.bat -f config\first.conf --config.test_and_exit -
Start Logstash
Run the pipeline, wait for
Pipeline started, type a line and press Enter. Stop with Ctrl+C.bin\logstash.bat -f config\first.conf -
Confirm the API responds
In a second window, query the monitoring API. Windows 10 and 11 include
curl.curl http://localhost:9600/?pretty -
Make it permanent
Move pipelines into
config\pipelines.yml, adjust the heap inconfig\jvm.optionsand register a service with a wrapper such as NSSM. The Windows install article shows each command.
12 Troubleshooting
Common LogStash problems and fixes
Each row pairs the message you are likely to see with its usual cause. For more, see fixing common Logstash errors.
Configuration will not load
Expected one of [ \t\r\n], "#", "{"
A syntax error: missing brace, a comma between hash entries or a stray backslash.
Run with --config.test_and_exit and check just before the reported line and column.
Second instance refuses to start
another instance using the configured data directory
Another Logstash process already holds the lock on path.data.
Stop the other process, or give each instance its own --path.data.
Refuses to run with sudo
sudo bin/logstash -f pipeline.conf
Since 9.0, Logstash will not run as root by default on Linux.
Run as a normal user or the packaged logstash service user, and fix file ownership.
Events marked as failed
tags => ["_grokparsefailure"]
The grok pattern does not match the incoming text.
Inspect a failing line with rubydebug, anchor the pattern, or switch the fixed part to
dissect.
Windows file input reads nothing
path => "C:\logs\*.log"
Backslashes in the path, or a sincedb entry remembering an earlier read position.
Use forward slashes; while testing, set sincedb_path => "NUL".
Pipeline slows down and crashes
java.lang.OutOfMemoryError: Java heap space
Heap too small for the number of workers and the batch size.
Raise -Xms/-Xmx together in config\jvm.options or lower the
batch size.
13 FAQ
LogStash frequently asked questions
Twenty answers in two groups: getting Logstash installed, and running pipelines day to day.
Download & setup
10 questionsLogstash is the data processing pipeline of the Elastic Stack. It receives events from sources such as log files, Beats agents, Kafka, databases and HTTP, transforms them with filters, and sends them to destinations such as Elasticsearch, object storage or another queue.
Yes. The default distribution, including the Windows ZIP linked on this page, can be downloaded and used without payment under the Elastic License that ships in the archive. Some Elastic Stack features used alongside Logstash depend on your Elasticsearch subscription level, so check the licence terms if you plan to redistribute it or offer it as a service.
logstash-9.5.6-windows-x86_64.zip: Logstash 9.5.6 for 64-bit Windows on x86 processors,
with the Java runtime included. It is a portable folder, not an installer.
No. Every Logstash download includes a tested Java runtime in its jdk folder. If you
have a reason to use a different JDK, set LS_JAVA_HOME; Logstash 9.x supports Java 17 and
21.
Extract the ZIP to a short path such as C:\logstash, create a pipeline file in
config, then run bin\logstash.bat -f config\first.conf from Command Prompt.
The Windows install walkthrough covers every step.
The ZIP does not include a service installer. Most Windows deployments use a service wrapper such as
NSSM to run logstash.bat at boot and restart it if it stops, with pipelines defined in
config\pipelines.yml.
Yes: docker.elastic.co/logstash/logstash:9.5.6, built on Red Hat UBI 9 Minimal. Mount
your pipeline folder at /usr/share/logstash/pipeline/. See running Logstash in Docker for settings and volumes.
Elastic publishes tar.gz archives for Linux and macOS (x86_64 and aarch64) and deb and rpm packages with apt and yum repositories. They are listed on elastic.co/downloads/logstash. The button on this page links only to the Windows ZIP.
Compare its SHA-512 checksum with the .sha512 file Elastic publishes next to the
archive. On Windows run certutil -hashfile logstash-9.5.6-windows-x86_64.zip SHA512; on
Linux or macOS use shasum -a 512.
Read the release notes and breaking changes for the versions you skip, extract the new version to a
fresh folder, copy your settings, pipelines and keystore across, reinstall extra plugins, then test
with --config.test_and_exit before switching over.
Pipelines & operations
10 questionsA pipeline is a configuration with input, filter and output sections. Inputs receive events, a pool
of workers runs the filters and outputs on batches of events, and a queue sits in between. One
Logstash process can run several isolated pipelines defined in pipelines.yml.
Not necessarily. Logstash can read files itself with the file input. Many deployments
still run lightweight shippers such as Filebeat on each server and use Logstash centrally for parsing
and routing, because Beats use fewer resources on the source machines.
No. Elasticsearch is the most common destination, but Logstash has outputs for files, Kafka, object storage, HTTP endpoints, syslog, databases and more. You can run it with no Elasticsearch cluster at all.
Run bin/logstash -f your.conf --config.test_and_exit. It parses the file and validates
plugin options, then exits with Configuration OK or an error that includes the line and
column.
Use dissect when fields are always separated by the same delimiters: it splits text
without regular expressions and is faster. Use grok when the format varies. They combine
well: dissect the fixed part, then grok the rest. See the grok
and dissect examples.
Yes. Start Logstash without -f and it runs every pipeline listed in
config/pipelines.yml, each with its own workers, queue and settings. Pipelines can also
pass events to each other through the pipeline input and output.
The default heap is 1 GB, which is enough for testing. Production sizing depends on workers, batch
size and filters; set -Xms and -Xmx to the same value and raise them while
watching garbage collection. Leave memory for the operating system as well.
Enable the persistent queue (queue.type: persisted) so events are buffered on disk
between inputs and workers, and enable the dead letter queue so events rejected by Elasticsearch are
kept for review rather than dropped.
Use the plugin manager: bin/logstash-plugin install logstash-filter-<name>.
bin/logstash-plugin list --verbose shows installed versions, and update
upgrades a plugin without a new Logstash release.
In the logs folder of an archive install (logstash-plain.log), in
/var/log/logstash/ and the systemd journal for deb and rpm installs, and on standard
output in Docker. Start with --log.level debug for more detail.