Files
tldr/pages.zh/common/logstash.md

17 lines
537 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# logstash
> 一个Elasticsearch的ETL提取、转换和加载工具。
> 通常用于将各种来源如数据库和日志文件中的数据加载到Elasticsearch中。
> 更多信息:<https://www.elastic.co/products/logstash>。
- 检查Logstash配置的有效性
`logstash --configtest --config {{logstash_config.conf}}`
- 使用配置运行Logstash
`sudo logstash --config {{logstash_config.conf}}`
- 使用最基本的内联配置字符串运行Logstash
`sudo logstash -e 'input {} filter {} output {}'`