- Kibana 7 Quick Start Guide
- Anurag Srivastava
- 322字
- 2021-07-02 13:55:37
Logstash
Logstash is a data pipeline that can take data input from various sources, filter it, and output it to various sources; these sources can be files, Kafka, or databases. Logstash is a very important tool in Elastic Stack as it's primarily used to pull data from various sources and push it to Elasticsearch; from there, Kibana can use that data for analysis or visualization. We can take any type of data using Logstash, such as structured or unstructured data , which comes from various sources, such as the internet. The data can be transformed using Logstash's filter option, which has different plugins to play with different sets of data. For example, if we get an IP address in our data, the GeoIP plugin can add geolocation using that IP address, and in the output, we can get additional information of geolocation, which can then be used in Kibana to plot a map.
The following expression shows us an example of a Logstash configuration file:
input
{
file
{
path => "/var/log/apache2/access.log"
}
}
filter
{
grok
{
match => {message => "%{COMBINEDAPACHELOG}"}
}
}
output
{
elasticsearch
{
hosts => "localhost"
}
}
In the preceding expression, we have three sections: input, filter, and output. In the input section, we're reading the Apache access log file data. The filter section is there to extract Apache access log data in different fields, using the grok filter option. The output section is quite straightforward as it's pushing the data to the local Elasticsearch cluster. We can configure the input and output sections to read or write from or to different sources, whereas we can apply different plugins to transform the input data; for example, we can mutate a field, transform a field value, or add geolocation from an IP address using the filter option.
Grok is a tool that we can use to generate structured and queryable data by parsing unstructured data.
- Oracle SOA Governance 11g Implementation
- 模型制作
- 樂高創意機器人教程(中級 下冊 10~16歲) (青少年iCAN+創新創意實踐指導叢書)
- JSF2和RichFaces4使用指南
- Java Web整合開發全程指南
- 電腦主板現場維修實錄
- 網絡安全管理實踐
- Excel 2007技巧大全
- 筆記本電腦維修90個精選實例
- Windows安全指南
- Cloudera Hadoop大數據平臺實戰指南
- 實戰大數據(Hadoop+Spark+Flink):從平臺構建到交互式數據分析(離線/實時)
- R Statistics Cookbook
- 網絡設備規劃、配置與管理大全(Cisco版)
- Deep Learning with PyTorch Quick Start Guide