About Logstash
Logstash runs pipelines in three stages: inputs such as Beats, syslog, Kafka or files; filters such as grok, dissect, date and geoip that parse and enrich each event; and outputs to Elasticsearch, S3, Kafka or another system. Hundreds of plugins cover most formats you will meet.
Parsing is CPU and memory work, so a dedicated CloudSat VPS keeps it away from your application servers. Persistent queues on NVMe absorb bursts, and High Frequency plans speed up grok-heavy pipelines.
After deploy the service reads pipeline files from /etc/logstash/conf.d/, and its monitoring API listens on port 9600 on localhost.
What you get with Logstash
- Inputs for Beats, syslog, Kafka, HTTP and files
- Grok, dissect, mutate and geoip filters
- Outputs to Elasticsearch, S3, Kafka and more
- Persistent queues and dead letter queues
- Monitoring API with per-pipeline statistics
Logstash use cases
- Central log collection from a fleet of servers
- Normalizing firewall or web logs before indexing
- Routing events to several destinations at once
After you deploy Logstash
- Once the console shows Running, SSH in and add a pipeline file under
/etc/logstash/conf.d/, for example abeatsinput on port 5044. - Test it with
sudo -u logstash /usr/share/logstash/bin/logstash --path.settings /etc/logstash -tbefore restarting the service. - Allow port 5044 only from the servers that ship logs, using a CloudSat firewall rule.
- Watch throughput with
curl -s localhost:9600/_node/stats/pipelines?pretty.
Logstash ports
Open these in your firewall if you use one: 5044/tcp Beats input (when configured), 9600/tcp monitoring API (localhost).
Logstash FAQ
How much memory should Logstash get?
Elastic recommends a 4 to 8 GB heap for typical ingestion, set with matching -Xms and -Xmx values in jvm.options. Light pipelines manage with less, as long as the operating system keeps some headroom.
Do I need Logstash if I already use Beats?
Not always. Beats can write straight to Elasticsearch; Logstash earns its place when events need heavy parsing, enrichment or fan-out to several outputs.
Disclaimer. The Logstash project has no affiliation with CloudSat and does not endorse it. Names and logos belong to their owners and appear only to identify the software.