From f53f0c806316b340fe0eb63e30c5bd6bb04291a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=A4ggmark?= Date: Wed, 26 Jun 2019 19:40:38 +0200 Subject: [PATCH] Docs: Adds section on Querying Logs for InfluxDB (#17726) Fixes #17715 --- docs/sources/features/datasources/influxdb.md | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/docs/sources/features/datasources/influxdb.md b/docs/sources/features/datasources/influxdb.md index 3d905f75713..63ca063d3c2 100644 --- a/docs/sources/features/datasources/influxdb.md +++ b/docs/sources/features/datasources/influxdb.md @@ -117,6 +117,26 @@ You can switch to raw query mode by clicking hamburger icon and then `Switch edi You can remove the group by time by clicking on the `time` part and then the `x` icon. You can change the option `Format As` to `Table` if you want to show raw data in the `Table` panel. +## Querying Logs (BETA) + +> Only available in Grafana v6.3+. + +Querying and displaying log data from InfluxDB is available via [Explore](/features/explore). + +![](/img/docs/v63/influxdb_explore_logs.png) + +Select the InfluxDB data source, change to Logs using the Metrics/Logs switcher, +and then use the `Measurements/Fields` button to display your logs. + +### Log Queries + +The Logs Explorer (the `Measurements/Fields` button) next to the query field shows a list of measurements and fields. Choose the desired measurement that contains your log data and then choose which field Explore should use to display the log message. + +Once the result is returned, the log panel shows a list of log rows and a bar chart where the x-axis shows the time and the y-axis shows the frequency/count. + +### Filter search + +To add a filter click the plus icon to the right of the `Measurements/Fields` button or a condition. You can remove tag filters by clicking on the first select and choosing `--remove filter--`. ## Templating