You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm banging my heads on the wall with something I'm facing.
My goal is:
Use Grafana Agent Flow as a "gateway", between some apps writing their logs in a fileshare and the backend Loki server.
I need to be able to parse log files from a large set of folders and give the log a set of labels based on the file path.
The devs currently work with X:$Customer$Application$env\logs.
I want to be able to set $Customer, $Application and $env as labels.
Is it doable ?
What's the best way to achieve this, without creating one local.file block per possible combination?
Side/bonus question:
The devs want to have a label for "customer". They currently have 500 and expect it to grow up to 2000 within a couple of years.
That's a terrible idea, right ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I'm banging my heads on the wall with something I'm facing.
My goal is:
Use Grafana Agent Flow as a "gateway", between some apps writing their logs in a fileshare and the backend Loki server.
I need to be able to parse log files from a large set of folders and give the log a set of labels based on the file path.
The devs currently work with X:$Customer$Application$env\logs.
I want to be able to set $Customer, $Application and $env as labels.
Is it doable ?
What's the best way to achieve this, without creating one local.file block per possible combination?
Side/bonus question:
The devs want to have a label for "customer". They currently have 500 and expect it to grow up to 2000 within a couple of years.
That's a terrible idea, right ?
Thanks in advance for your help.
Beta Was this translation helpful? Give feedback.
All reactions