Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

View logs as histogram or time series in Grafana

UV1
Bronze 1
Bronze 1

Hi,

When using Cloud Logging plugin for Grafana, I can see the logs only as text logs and not as graph.

I want to be able to view the logs as bars graph and create an alert based on number of errors.

Is it possible ?

Thx

0 1 983
1 REPLY 1

Hello, 

The Cloud Logging plugin for Grafana uses the Cloud Logging API which supplies log entries and doesn't provide aggregation services. By configuring Log Analytics on the log bucket and the linked dataset, you could  also query/chart the logs using the BigQuery datasource plugin for Grafana using SQL. This does allow you to chart the logs in Grafana. Please note that while enabling Log Analytics doesn't incur any additional cost, querying from Grafana against the linked dataset does incur the standard BigQuery query costs (since from Grafana, it's a query in BigQuery).

Thanks,

-Charles  

Top Solution Authors