Useful queries
groundcover recommends using as many "strong" filters as possible, like time filters, workload and namespaces filters, log level filters, etc.
These will help making free text and attribute searches much faster and efficient.
The $__timeFilter condition enforces time range limits on the query, which are selected based on the time window selected for the query.
Counting error logs
The query uses the count()
operator to get the number of error logs in the defined time window.
groundcover always saves log levels as lower-cased values, e.g: 'error'
, 'info'
.
Free text search
The query uses the count()
operator to get the number of logs generated by the kafkajs-events-consumer
workload, which contain the phrase Connection timeout.
Selecting and filtering by log attributes
Using formatted logs allows groundcover to automatically extract attributes from the log, which can then be used in alerts and dashboards.
For example, let's look at the following json-formatted log:
The following query uses the string_attributes
column to query the "http.req.method"
attribute and filter for GET
requests:
Last updated