6 useKibana
Understand the data
Kibana4
The function of the
Search terms are highlighted
Elasticsearch
The aggregation
Kibana4
The widespread use ofElasticsearch
The aggregations and subaggregations of the There are two main types of aggregations
- Barrels (
Bucketing
) : Generates a series of buckets, each with a set of documents, such as phrases, ranges, histograms, and so on - Metrics: Calculate metrics for a set of documents, such as minimum, maximum, sum, average, and so on. This calculation can only be performed on fields of numeric type
Derivative field
- Derived field (
Scripted fields
) for dynamic calculations of indexed data
For example, if a field needs to be multiplied by 100 before it is displayed, it can be stored as a derived field, but the derived field cannot be searched
Dynamic dashboard
- The dashboard is very flexible and dynamic. You can easily drag and drop visual components as needed, and the data can be refreshed automatically
Kibana
interface
- Contains four main tags
- Search: Search freely, or by field, range, etc
- Visualizations: Create many types of visualizations, such as pie charts, bar charts, line charts, and so on, and save them for later use in the dashboard
- Dashboard: A collection of various visualizations and searches that can be easily applied to click-based filters, as well as to conclusions based on multiple data aggregates
- Settings: Configure index mode, derived field, field data type, etc
Search page
- Suitable for interactive search queries on indexed data. You can do field-specific searches, filter data, and view indexed documents
- Left: All index modes
- Top: Time filter and search box
- Page header: Based
@timestamp
Default histogram of fields; The number of hits in the corresponding search results - Search results: 500 latest documents in reverse chronological order
Time filter
Quick time filter
Relative time filter
Absolute time filter
Auto refresh Settings
The region triggers the time filter
Query and retrieve data
Kibana
useLucene
Query syntax to search index data. You can be there, tooElasticsearch
The use ofElasticsearch Query DSL
Free text search
- Find the search term from all fields in all documents
Search syntax: lucene.apache.org/core/8_5_2/…
AND
“Learning” AND “ELK” : Search for documents that contain both words
OR
“Logstash” OR “ELK” : Contains Logstash OR all documents containing ELK
NOT
“Logstash” NOT “ELK” : All documents that contain a Logstash but NOT an ELK
grouping
(“Logstash” OR “ELK” AND “Kibana”) : All documents that contain Kibana AND ELK OR Logstash
Wildcard search
Plan * : Search for files shaped like plans, plant, planting, etc
plan? : Matches files such as Plant and plans
? And * 😕 And * cannot be used as the first letter of the search criteria
Field search
- The goal is to search for fields of a specific value or range in the index document, which are displayed on the left side of the search page; Join fields and values with colons
< field name >:< field value >
title : “Learning ELK”
title : “Learning ELK” AND category : “technology”
Scope of the search
- It is used to query the value range of a field, for example, to search for a specific date range
date_of_record : [20200101 TO 20200606]
- The query
volume
The value of the field is between 10000 and 20000
volume : [10000 TO 20000]
- Range search and field search can be used in combination with Boolean conformance, for example
publish_date : [20200101 TO 20200606] AND title : “Learning ELK”
Escape special characters
- The following is a list of special characters that should be escaped using the \ symbol if needed in a query
+ – && | |! {} [] ^ “~ *? : \
Save search
- Use the search page”
save search
“Option to save the search and use it for later visualization. Saved searches can be added to the dashboard
Open the saved search
- “On the toolbar of the search page.
Load Saved Search
“Option to open previously saved searches
Search fields with a list of fields
- Field queries can be made by clicking the “positive” or “negative” filter button on a field specific value
- You can also click next to the field name on the left field list
add
Button makes the right panel display the specified field. This can be based onfdvd
The result table on the right shows the values of the fields
- This way you can quickly add fields, categorize documents by specific fields, and arrange fields in business order. This is very helpful for creating quick search tables