mirror of https://github.com/grafana/grafana
Logs: Publish logs panel (#19504)
* Logs: Publish logs panel - remove alpha state from plugins definition - add panel documentation - updated panel reference in Loki docs * Review feedbackpull/19457/head^2
parent
9b5bc819f4
commit
265669710c
@ -0,0 +1,44 @@ |
||||
+++ |
||||
title = "Logs Panel" |
||||
keywords = ["grafana", "dashboard", "documentation", "panels", "logs panel"] |
||||
type = "docs" |
||||
aliases = ["/reference/logs/"] |
||||
[menu.docs] |
||||
name = "Logs" |
||||
parent = "panels" |
||||
weight = 2 |
||||
+++ |
||||
|
||||
# Logs Panel |
||||
|
||||
<img class="screenshot" src="/assets/img/features/logs-panel.png"> |
||||
|
||||
> Logs panel is only available in Grafana v6.4+ |
||||
|
||||
The logs panel shows log lines from datasources that support logs, e.g., Elastic, Influx, and Loki. |
||||
Typically you would use this panel next to a graph panel to display the log output of a related process. |
||||
|
||||
## Querying Data |
||||
|
||||
The logs panel will show the result of queries that are specified in the **Queries** tab. |
||||
The results of multiple queries will be merged and sorted by time. |
||||
Note that you can scroll inside the panel in case the datasource returns more lines than can be displayed at any one time. |
||||
|
||||
### Query Options |
||||
|
||||
Some datasources (e.g., Loki) allow the use of **Live** tailing to show a steady stream of log messages. |
||||
When the panel is in **Live** mode, results are directly streamed from the datasource and the dashboard's time range is ignored. |
||||
Note that the streaming can put extra effort on the datasource and your browser. |
||||
Usually, the dashboard-wide refresh should be enough to get a recent set of log lines. |
||||
|
||||
To limit the number of lines rendered, you can use the query-wide **Max data points** setting. If it is not set, the datasource will usually enforce a limit. |
||||
|
||||
## Visualization Options |
||||
|
||||
### Columns |
||||
|
||||
1. **Time**: Show/hide the time column. This is the timestamp associated with the log line as reported from the datasource. |
||||
2. **Order**: Set to **Ascending** to show the oldest log lines first. |
||||
|
||||
|
||||
<div class="clearfix"></div> |
Loading…
Reference in new issue