Apply multitail's filtering to many files passed via wildcard
3
votes
1
answer
2051
views
multitail
has a nice regex-based filtering mechanism that is described in the manpage and online manual. Both sources state that log lines matching a given regex can be excluded from output using the -ev
switch:
multitail -ev "ignorelinescontainingthis" /var/log/whatever.log -ev "alsoignorethis" /var/log/another.log
This does, however, not seem to work for filtering many log files that are passed using wildcards:
multitail -ev "thisdoesntwork" /var/log/myservice*.log
Is there a way to get this to work?
For analysis purposes, I tried the -ec
switch (which highlights regex matches) and it turns out that the filter is only applied to the first file in the wildcard list, but none of the other ones.
Asked by jstarek
(1742 rep)
Nov 28, 2019, 02:34 PM
Last activity: Nov 29, 2019, 03:36 PM
Last activity: Nov 29, 2019, 03:36 PM