LogQL

From wikieduonline
Revision as of 17:40, 23 November 2020 by Welcome (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
This article is a Draft. Help us to complete it.


logcli


Get top 10 applications by highest log throughput:

topk(10,sum(rate({region=”us-east1"}[5m]) by (name))

Get the count of logs during the last 5 minutes by level:

sum(count_over_time({job=”mysql”}[5m])) by (level)

Get the rate of HTTP GET requests from nginx logs:

avg(rate(({job=”nginx”} |= “GET”)[10s])) by (region)


See also[edit]

Advertising: