Closed mateuszdrab closed 1 year ago
Thanks for reporting. This smells similar to a problem we've been having where we noticed that loki.process was modifying shared memory, which could lead to issues like this.
I'm not sure what the state of that fix is; @tpaschalis would know for sure but he's on PTO until next week.
Thanks for reporting. This smells similar to a problem we've been having where we noticed that loki.process was modifying shared memory, which could lead to issues like this.
I'm not sure what the state of that fix is; @tpaschalis would know for sure but he's on PTO until next week.
Thanks for the update. This could potentially explain a few crashes I've observed on the agent which could be due to mentioned memory corruption.
Let's await for an update from @tpaschalis when he returns next week
@mateuszdrab hey there, thanks for the report!
On a first glance, it sounds like it could be the same issue; I'm taking another look at the configuration and logs to see if anything seems weird. The fix on 67692153c9037d5892dcec9347973b6ce6354be9 is available on v0.34, is there a chance you could update and see if the issue is still present?
Sorry to take a long time to report back; however, the good news is that it seems to work fine now therefore I'll close this issue.
Thanks guys
What's wrong?
I've set up a river flow to capture some Exchange Server logs into Loki. Due to the sheer amount of files, initial attempts at submitting the series to Loki failed to due too many series error. To remediate this, I added a pack stage to pack the filename label (which I believe is good practice anyway since I don't care about the actual file names) and reduced the amount of files I'll be ingesting.
After running this for a day, I noticed that majority of the logs do not have the filename label in the packed json (just the message itself is there), after removing the pack stage, the label is there. I've been running the agent for 24h with the pack stage removed and all logs have the filename label.
It's worth noting that as part of relabeling, I also regex the filename label to extract the directory name and put that in a directory label. This label is always there in each log but it is not packed.
Steps to reproduce
Apply pack stage as below when digesting logs to Loki:
This is applied as one of the last processing steps, after extracting the directory from the filename using relabeling.
System information
Windows Server 2019
Software version
Grafana Agent v0.33.2
Configuration
Logs