Open tterrace opened 5 years ago
I'd also really like this. I've a couple apps running on the same host and they log to different directories but to files with the same name (a number that increases at every app restart). This'd help me better identify which is which.
We have a use case where we'd like to glob all the files in several directories and give a unique tag to each, but also preserve the filenames in the log lines. For example, if we have a couple servers logging to multiple directories under /var/log, we could do something like:
And the log lines would show up with the filenames (acceess_log/error_log) appended in papertrail:
I was able to hack my way into something that works, but I'm not a go programmer so it might not be the correct approach.