I want to live tail
from three different folders with certain files included & excluded.
Folder 1:
- Path: /var/www/app/var/log/
- Exclude only: file1.log & file2.log
Folder 2:
- Path: /var/log/web/log/
- Include only: error.log
Folder 3:
- Path: /var/log/service/log/
- Include only: app1.error.log & app2.error.log
How would I tail from three different folders with inclusion and exclusion of some files in one tail
command?
tail -f ???
Tried so far
tail -f /var/www/app/var/log/!(file1,file2).log /var/log/web/log/error.log /var/log/service/log/{app1,app2}.log
But this doesn't work. I feel need to use find
+ tail