2017-02-03 19:52:44 +00:00
|
|
|
# logstash
|
|
|
|
|
2021-05-20 21:13:41 +01:00
|
|
|
> An Elasticsearch ETL (extract, transform and load) tool.
|
|
|
|
> Commonly used to load data from various sources (such as databases and log files) into Elasticsearch.
|
2019-06-05 08:55:55 +01:00
|
|
|
> More information: <https://www.elastic.co/products/logstash>.
|
2017-02-03 19:52:44 +00:00
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- Check validity of a Logstash configuration:
|
2017-02-03 19:52:44 +00:00
|
|
|
|
|
|
|
`logstash --configtest --config {{logstash_config.conf}}`
|
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- Run Logstash using configuration:
|
2017-02-03 19:52:44 +00:00
|
|
|
|
|
|
|
`sudo logstash --config {{logstash_config.conf}}`
|
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- Run Logstash with the most basic inline configuration string:
|
2017-02-03 19:52:44 +00:00
|
|
|
|
|
|
|
`sudo logstash -e 'input {} filter {} output {}'`
|