In my case, some logs are named like this xxxxx.2023050401.log
.
Our application will create a new log file every hour. Eventually, the “filename” label becomes a dynamic label with unbounded values.
You have two options:
-
Remove the filename label on ingestion, if you don’t care about knowing the file name.
-
Parse the file name, and extract the
xxxxx
part, and use that as file name (essentially get rid of the date part).
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.