Use Kibana to analyze nginx logs and show them on dashboard

Source: Internet
Author: User
Tags response code kibana

First, the visualize function of Kibana

The Visualize tab on the home page is used to design visual graphics. You can save the previous search in discovery to make a drawing, then save the visualize, or load the merge into dashboard. A visualization can be based on the following types of data sources:
A new interactive search
A saved search
A saved visualization

Here are some of the types of visualize that Kibana comes with

Type use
Area chart uses block diagrams to visualize the overall contribution of multiple different sequences.
Data table displays the aggregated raw data in a datasheet. Other visualizations can be displayed by clicking the bottom of the data table.
Line chart compares the different sequences with a linear chart.
The Markdown widget uses Markdown to display custom format information or usage instructions related to your dashboard.
Metric Use indicator visualizations to display a single number on your dashboard.
Pie chart uses a pie chart to show each source's contribution to the overall.
Tile map uses tile maps to link aggregation results with latitude and longitude.
The Vertical bar chart uses a vertical bar chart as a general figure.

Paint Step:visualize--> Select the type--Search bar filter Results 1--> in the 2 toolbar, select the Aggregation builder-->3 Live preview and save the diagram.

The following is mainly the HTTP server some of the drawings. As for the other analysis, it remains to be learnt.

Second, a step-by-step construction of HTTP Dashboard

1. First show the fields and the values corresponding to the fields, as follows:

Be sure to first know the contents of the field in your log, otherwise the picture is meaningless ...

2. Start the first diagram, area chart type, statistics the request response distribution for each time period of the website

Then save them as visualize, and these graphs will be "live" refreshed on dashboard.

2.Data table type. Statistical Access Request Page TOP10

3.Line Chart Statistics The number of clicks of an IP over a certain time period

4.Metric View UV, see the number of visitors to the site (if the campus network or agent, may reflect the less real)

5.Pie Chart pie, statistical response code responses to the request page map

6.Tile Map site visitor's IP attribution location

7.Vertical bar chart, which differs from the proxy type used by clients to view response codes for a time period response

(Original: http://www.cnblogs.com/hanyifeng/Fly Away not)

Iv. The final Dashboard

Figure 1:

Figure 2:

Figure 3:

V. Last

Kibana visual graphics, also need to be based on their own needs to be combined with the field. And Kibana also have other plug-ins, such as Cloudtag, line, timelion and so on. Other diagrams will continue to update the text later. You are also welcome to shoot bricks, ac ha. Finally, Pumpkin Festival happy!!

Note: This article belongs to the author original, reproduced please indicate the source. Source: Fly Away not http://www.cnblogs.com/hanyifeng/p/5860731.html

Resources:

Https://github.com/elastic/kibana/wiki/Known-Plugins

http://kibana.logstash.es/content/kibana/v4/visualize/

Use Kibana to analyze nginx logs and show them on dashboard

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.