How to multitail and grep for only one file?
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I have set up a multitail with 4 windows (1 window to the left and 3 windows to the right). I would like to grep for the phrase "local" - but only for the first log file.
I tried it like this but it didn't work.. It just shows it all garbled together.
multitail -s 2 -sn 1,3 /var/www/php7/website/storage/logs/laravel.log | grep "local" /var/www/php7/website/storage/logs/info.log /var/www/php7/website/storage/logs/debug.log /var/www/php7/website/storage/logs/cron.log
linux grep console tail multitail
New contributor
add a comment |Â
up vote
0
down vote
favorite
I have set up a multitail with 4 windows (1 window to the left and 3 windows to the right). I would like to grep for the phrase "local" - but only for the first log file.
I tried it like this but it didn't work.. It just shows it all garbled together.
multitail -s 2 -sn 1,3 /var/www/php7/website/storage/logs/laravel.log | grep "local" /var/www/php7/website/storage/logs/info.log /var/www/php7/website/storage/logs/debug.log /var/www/php7/website/storage/logs/cron.log
linux grep console tail multitail
New contributor
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have set up a multitail with 4 windows (1 window to the left and 3 windows to the right). I would like to grep for the phrase "local" - but only for the first log file.
I tried it like this but it didn't work.. It just shows it all garbled together.
multitail -s 2 -sn 1,3 /var/www/php7/website/storage/logs/laravel.log | grep "local" /var/www/php7/website/storage/logs/info.log /var/www/php7/website/storage/logs/debug.log /var/www/php7/website/storage/logs/cron.log
linux grep console tail multitail
New contributor
I have set up a multitail with 4 windows (1 window to the left and 3 windows to the right). I would like to grep for the phrase "local" - but only for the first log file.
I tried it like this but it didn't work.. It just shows it all garbled together.
multitail -s 2 -sn 1,3 /var/www/php7/website/storage/logs/laravel.log | grep "local" /var/www/php7/website/storage/logs/info.log /var/www/php7/website/storage/logs/debug.log /var/www/php7/website/storage/logs/cron.log
linux grep console tail multitail
linux grep console tail multitail
New contributor
New contributor
New contributor
asked 16 mins ago
Liga
31
31
New contributor
New contributor
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Liga is a new contributor. Be nice, and check out our Code of Conduct.
Liga is a new contributor. Be nice, and check out our Code of Conduct.
Liga is a new contributor. Be nice, and check out our Code of Conduct.
Liga is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f479062%2fhow-to-multitail-and-grep-for-only-one-file%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password