2025-03-14 21:59:59 -06:00
|
|
|
# logstash
|
|
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
> An Elasticsearch ETL (extract, transform, and load) tool.
|
2025-03-14 21:59:59 -06:00
|
|
|
> Commonly used to load data from various sources (such as databases and log files) into Elasticsearch.
|
2026-02-18 06:55:01 -07:00
|
|
|
> More information: <https://www.elastic.co/logstash>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Check validity of a Logstash configuration:
|
|
|
|
|
|
|
|
|
|
`logstash --configtest --config {{logstash_config.conf}}`
|
|
|
|
|
|
|
|
|
|
- Run Logstash using configuration:
|
|
|
|
|
|
|
|
|
|
`sudo logstash --config {{logstash_config.conf}}`
|
|
|
|
|
|
|
|
|
|
- Run Logstash with the most basic inline configuration string:
|
|
|
|
|
|
|
|
|
|
`sudo logstash -e 'input {} filter {} output {}'`
|