Created
November 9, 2022 16:13
-
-
Save influxdatamarketing/fd0a2806224707f12cb0bc25586dfb1f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from(bucket: "syslog") | |
|> range(start: v.timeRangeStart, stop: v.timeRangeStop) | |
|> filter(fn: (r) => r["_measurement"] == "influxdb2.local0.debug") | |
|> filter(fn: (r) => r["_field"] == "facility" or r["_field"] == "host" or r["_field"] == "severity") | |
|> unique() | |
|> yield(name: "unique") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment