HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

logstash — An Elasticsearch ETL (extract, transform, and load) tool. Commonly used to load data from various so

Submitted by: @import:tldr-pages··
0
Viewed 0 times
logstashtransformextractcommandelasticsearchetlandcli

Problem

How to use the logstash command: An Elasticsearch ETL (extract, transform, and load) tool. Commonly used to load data from various sources (such as databases and log files) into Elasticsearch. More information: <https://www.elastic.co/logstash>.

Solution

logstash — An Elasticsearch ETL (extract, transform, and load) tool. Commonly used to load data from various sources (such as databases and log files) into Elasticsearch. More information: <https://www.elastic.co/logstash>.

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 {}'

Code Snippets

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 {}'

Context

tldr-pages: common/logstash

Revisions (0)

No revisions yet.