- Mastering Kibana 6.x
- Anurag Srivastava
- 266字
- 2021-07-16 18:20:11
Configuring Logstash to fetch data from the Apache log file
The Apache web server is widely used for serving different websites worldwide, and by monitoring this data, we can solve different issues in our web applications. However, if we try to monitor it by reading Apache log files, it will be quite difficult to get the exact issue, as we need to read the log file line by line. For these types of situations, Kibana is a very handy tool that can solve this problem if we can feed it with this data. Here, you are going to learn about the process of feeding data in Kibana. So, first of all, we need to configure Logstash to read Apache log files.
We have to create the Logstash configuration file (logs-apache.conf) under the /etc/logstash/conf.d/ location. In the Logstash configuration file, there are three sections: input, filter, and output. For now, we can use the input and output sections.
For Logstash input, we need to pass the Apache log file location and other details, such as the file path and file type. So here, in our example, we need to pass the file path as /var/log/apache2/access.log and the file type as apache-access. For the output section, we need to provide details such as Elasticsearch hosts, index, and document_type, as shown in the following screenshot:

In this way, we can configure Logstash to take inputs from Apache log files and output the data to the Elasticsearch server. In this setup, we are not going to configure the filter option, but we will cover that at a later stage.
- Visual C# 2008開(kāi)發(fā)技術(shù)詳解
- 21天學(xué)通Visual Basic
- DevOps:Continuous Delivery,Integration,and Deployment with DevOps
- Visual C++編程全能詞典
- Ceph:Designing and Implementing Scalable Storage Systems
- Godot Engine Game Development Projects
- 單片機(jī)技能與實(shí)訓(xùn)
- 工業(yè)機(jī)器人實(shí)操進(jìn)階手冊(cè)
- 自適應(yīng)學(xué)習(xí):人工智能時(shí)代的教育革命
- 計(jì)算機(jī)應(yīng)用基礎(chǔ)學(xué)習(xí)指導(dǎo)與練習(xí)(Windows XP+Office 2003)
- Intel Edison Projects
- 服務(wù)科學(xué)概論
- 人工智能基礎(chǔ)教程:Python篇(青少版)
- 深度剖析:硬盤固件級(jí)數(shù)據(jù)恢復(fù)
- 從0到1 TensorFlow編程手記