Logstash is an open source data collection engine with real-time pipelining capabilities. Logstash can dynamically unify data from disparate sources and normalize the data into destinations of your choice. Cleanse and democratize all your data for diverse advanced downstream analytics and visualization use cases.
While Logstash originally drove innovation in log collection, its capabilities extend well beyond that use case. Any type of event can be enriched and transformed with a broad array of input
, filter
, and output
plugins
, with many native codecs further simplifying the ingestion process. Logstash accelerates your insights by harnessing a greater volume and variety of data.
样例
从标准输入采集数据,经过grok过滤处理,最后解码输出到控制台。适合用于测试验证。
logstash.conf:
1 |
|
运行:
1 |
|
input
stdin
1 |
|
beat
1 |
|
filter
grok
1 |
|
样例:从filebeat来的数据经过logstash的grok处理后的结果
1 |
|
output
stdout
1 |
|
elasticsearch
1 |
|