Replies: 1 comment
-
What does this mean? I think the tag will be |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have directories within /var/log/app/* that are named based on the env the logs relate to:
Within those directories, I have logs for various processes in the form of *.log.1:
Is there a way that I can use the tail plugin and write a single filter so that the directory env becomes one tag and the foo/bar part of the log file name becomes another tag? Or do I need to have one source per file name? So for example, I would want to end up with log_name's such as:
and tags such as:
I figured it would be similar to the docker filter I have:
but I know the tag_parts aren't actually referencing the directory and files names.
Is there a way to hand all the directories and files within them with one filter? or do I need to just manually create one per directory/file?
Beta Was this translation helpful? Give feedback.
All reactions