'??' glob pattern not working in recent versions for --logs argument #638
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
'??' glob pattern for --logs argument used to work (in v3.0.0-rc36) but stopped working in recent versions.
I have the following log files:
I am starting the latest build of mtail with the following arguments:
/tmp/mtail.rc48 -port 12345 -progs /etc/mtail/my-progs/ -logtostderr -disable_fsnotify -logs '/var/log/my_prog/my_prog.log.*_??'
Mtail does not tail the files:
If I start it with:
/tmp/mtail.rc48 -port 12345 -progs /etc/mtail/my-progs/ -logtostderr -disable_fsnotify -logs '/var/log/my_prog/my_prog.log.*_[0-9][0-9]'
It tails the files:
the
-logs '/var/log/my_prog/my_prog.log.*_??'
argument works in version v3.0.0-rc36, so I think this bug was introduced in a new version.Moreover, according to https://google.github.io/mtail/Deploying.html,
And the glob pattern documentation says:
So I expect the glob pattern matching to work as it used to in v3.0.0-rc36