Hi, I send appication logs in InfluxDB3 (OSS v3.7) using Telegraf
In docs we have this recommendation On first write, sort tags by query priority
but Telegraf change tag order
from log,env=qa,tier=frontend,source=web,level=error …
to log,level=error,env=qa,source=web,tier=frontend …
What is a proper way to handle this?
(or only sending 1st table log with proper order through http/cli manually)
Yeah, the recommendation here is to manually send one log with the proper ordering before starting Telegraf up. With line protocol, you can sort your tags in the exact order of query priority. Future writes from Telegraf will then follow that ordering. If you don’t manually write the first log, the ordering of tags will instead be determined by the implementation of the Telegraf plugins you’re using.
I hard-delete table, manually write the first log, start log sending through telegraf.
Some ideas on how to check is this priority properly stored on influxdb side?
(in information_schema.columns, influxdb data explorer I see only lexicographic order of tags & fields)