Logstash + Kibana log system deployment configuration
Logstash is a tool for receiving, processing, and forwarding logs. Supports system logs, webserver logs, error logs, and application logs. In short, it includes all types of logs that can be flushed.
Typical use cases (ELK ):
Elasticsearch is used as the storage of background data, and kibana is used for front-end report presentation. Logstash acts as a
I. Environmental preparedness
Role
SERVER IP
Logstash Agent
10.1.11.31
Logstash Agent
10.1.11.35
Logstash Agent
10.1.11.36
Logstash Central
10.1.11.13
Elasticsearch
10.1.11.13
Redis
10.1.11.13
Kibana
10.1.11.13
The architecture diagram is as follows:650) this.width=650; "src=" Http:
Elasticsearch + Logstash + Kibana install X-Pack in the software package,Elasticsearch + Logstash + Kibana install X-Pack
X-Pack is an extension of an Elastic Stack that includes security, alarms, monitoring, reporting, graphics, and machine learning functions in an easy-to-install software package.1. install X-Pack in elasticsearch
Follow these steps to install x-pack in elasticsearch:1. 1. Download x-pack
Official website https://www.elastic.coSoftware version: Logstash 2.2.0 all Pluginselasticsearch 2.2.0Kibana 4.4.0Note: This environment becomes Centos6.5 64 bits, the single machine does the test, the specific configuration is simple.1.Logstash installation ConfigurationUnzip to/usr/local/logstash-2.2.0/Logstash configuration file:Vim/usr/local/logstash-2.2.0/etc/agent.confInput {file {path = '/usr/local/nginx/logs/access.log ' start_position = beginning}} output {elasticsearch {} stdout {}}Log
Recently in the log analysis of this piece, to use Logstash+elasticsearch+kibana to implement log import, filtering and visual management, official documentation is not detailed enough, the online articles are mostly either for the use of Linux systems, or the copying of other people's configuration is mostly impossible to run. It took a lot of effort to get rid of these three things, write a usage experience, nonsense not much to say, into the subjec
First heard elk, is Sina's @argv introduction internal use elk situation and scene, at that time touched very big, originally have so convenient way to collect log and show, have such tool, you do bad thing, delete log, it has no effect.A lot of companies say they are concerned about security, but they have not seen and watched the logs of their servers, which is a bit ironic. Manage the logs first, and then we'll discuss security in depth.Mirantis's fuel, has introduced elk as a monitoring tool
1. Workflow of Log Platform650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/71/5F/wKioL1XNWHGwPB_ZAAErAE7qZjQ757.jpg "title=" 1.png " alt= "Wkiol1xnwhgwpb_zaaerae7qzjq757.jpg"/>
shipper means log collection, using Logstash to collect log data from various sources, such as system logs, files, Redis, MQ, and so on;
broker as a buffer between the remote agent and the central agent, using Redis implementation, one can improve the performance of the system, the secon
650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131229/1202126451-0.jpg "title =" QQ20131205102252.jpg "alt =" 105515797.jpg"/>
I found that Kibana has reached 3.0 a few days ago, and the message is seriously lagging behind. Please upgrade now!
Access www.kibana.org now will jump directly to the http://www.elasticsearch.org/overview/kibana/
Strong ES
wget https://download.elasticsearch.o
Objective
process, NIGNX format log into JSON, Logstash directly to Elasticsearch, and then through the Kibana GUI interface display analysis
Important NIGNX Log into JSON format, avoid nignx default log is a space, need a regular match, resulting in logstash too much CPUThe Elasticsearch machine configures the firewall, allowing only the specified Logstash machine accessKibana only listens for local 127.0.0.1 use NIGNX direction Agent, Nginx Config
Fluentd is an open source collection event and log system that currently offers 150 + extensions that let you store big data for log searches, data analysis and storage.
Official address http://fluentd.org/plugin address http://fluentd.org/plugin/
Kibana is a Web UI tool that provides log analysis for ElasticSearch, and it can be used to efficiently search, visualize, analyze, and perform various operations on logs. Official Address http://www.elastic
Installation and deployment one, environment configuration
Operating system: Cent OS 7
Kibana version: 3.1.2
JDK version: 1.7.0_51
SSH Secure Shell version: Xshell 5
Second, operation process 1: Download the specified version of the KibanaGo to the installation directory and download the Kibana compressed package file and unzip it via the Curl command:
Download
Curl-l
Overview
Log System Elk use details (i)-How to useLog System Elk use details (ii) –logstash installation and useElk Use of log system (iii) –elasticsearch installationLog System Elk use details (iv) –kibana installation and useElk Use of log system (v)-supplement
This is the last of the small series, and we'll see how to install Kibana and make a quick query about the log information in elk.
The best 20 data visualization tools for visualization
Reprinted original URL: http://www.iteye.com/news/28093
Data Visualization makes data more intuitive and lays the foundation for developers to make correct decisions. This article describes 20 different data visualization tools, from simple lists to complex table
Kibana + Logstash + Elasticsearch log query system, kibanalostash
The purpose of this platform is to facilitate log query During O M and R D. Kibana is a free web shell. Logstash integrates various log collection plug-ins and is also an excellent regular-cut log tool. Elasticsearch is an open-source search engine framework (supporting cluster architecture ).
1 installation requirement 1.1 theoretical Topo
Elasticsearch and Kibanna's link address: https://www.elastic.co/downloads, The packages I use in my environment are kibana-4.1.1-linux-x64.tar.gz and elasticsearch-1.7.1.zip.Installing ElasticsearchIt is assumed that the Java environment has been configured before, so it can be installed directly.[Email protected] ~]# Unzip Elasticsearch-1.7.1.zip[Email protected] ~]# MV Elasticsearch-1.7.1/usr/local/elasticsearchInstalling
adding or modifying inputs, outputs, and filters in your profile, thus making it easier to tailor a more reasonable storage format for the query.Integrated Elasticsearch Insert data above steps have been successfully built Logstash, then add logstash configuration file, so that its configuration file start, the data into ES, display1. Add logs.conf under the/root/config/directoryinput{file{type = "all" Path = "/root/tomcat7/logs/catalina.out"} file{type =gt ; "Access" path = "/root/tomcat7/logs
Python data visualization is divided intoScalar visualization, vector visualization, contour line visualizationScalar is also called no vector, only the size has no direction, the operation follows the algebraic algorithm such as mass, density, temperature, volume, timeVectors, also known as vectors, are determined by the size and direction of the volume, the ope
Kibana do not select the field you want to select, that is, the term to filter the selected field when the Discovery list does not have this option.650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/79/08/wKiom1aFAWuSYiPXAAAaSCMrdEo742.gif "style=" float: none; "title=" 3.gif "alt=" Wkiom1afawusyipxaaaascmrdeo742.gif "/>Go to discover to see, found that this field is preceded by a question mark, click to prompt this field is not indexed, not f
For details about how to import logs to elasticsearch clusters Through flume, see flume log import to elasticsearch clusters.Kibana Introduction
Kibana Homepage
Kibana is a powerful elasticsearch data display client. logstash has built-in kibana. You can also deploy kibana separately. The latest version of kibana3 is
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.