FuseQL Examples :: Kloudfuse Docs

FuseQL Examples

Here are some practical examples on how to use the Kloudfuse log searching query language, FuseQL.

Count All Logs

count of``all logs``Everything``top``10 5s

* | timeslice 5s | count by (_timeslice)

fuseqlCopied!

This analysis works well for the following use cases:

Count of All Fingerprints

count of``all fingerprints``Everything``top``10 30s

* | timeslice 30s | count_unique(fingerprint) by (_timeslice)

fuseqlCopied!

This analysis works well for the following use cases:

Count of All Logs Grouped by Level

count of``all logs``core:level``top 10``30 s

* | timeslice 30s | count by (_timeslice, level)

fuseqlCopied!

This analysis works well for the following use cases:

Count of All Fingerprints Grouped by Source

count of``all fingerprints``Core:source``top``10``5s

* | timeslice 5s | count_unique(fingerprint) by (_timeslice, source)

fuseqlCopied!

This analysis works well for the following use cases:

Average of a Duration/Number Facet

avg of``@*:duration``Everything``top``10``5s

* | timeslice 5s | avg(@duration:duration_seconds) by (_timeslice)

fuseqlCopied!

This analysis works well for the following use cases:

Error Rate Formula

FILTER a

Core:level="error"

fuseqlCopied! + count of``all logs``Everything``top``10``5s

FILTER b Nothing

count of``all logs``Everything``top``10``5s

FORMULA a/b

This analysis works well for the following use cases:

Anomaly on Count of Error Logs

Core:level="error"

fuseqlCopied!

count of``all logs``Everything``2m``anomalies``agile-robust``hourly``1

This analysis works well for the following use case:

Outlier

This analysis helps in monitoring error logs across various sources within a distributed system, allowing teams to detect components that may require immediate investigation.

Log Math Operator to Scale the Y-Axis Down

This analysis can: