Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
2
votes
3
answers
449
views
Using mouse scroll with Multitail
Is there any way to use the mouse wheel, or the terminal window slide bar, to look through a `multitail` log? Ideally `multitail` would work almost exactly like `tail` (except with the obvious coloring).
Is there any way to use the mouse wheel, or the terminal window slide bar, to look through a
multitail
log?
Ideally multitail
would work almost exactly like tail
(except with the obvious coloring).
greedybuddha
(123 rep)
Dec 1, 2017, 08:28 PM
• Last activity: May 17, 2023, 04:09 PM
8
votes
2
answers
1934
views
Watch file using multitail even if it has not been created
I've a MapServer logfile; it is created in `/tmp/mapserv.log`, but obviously it is flushed at every reboot, and is created only when a loggable event occurs. I'm already using Multitail, but now I need to watch the folder `/tmp` for a file that has not even been created, waiting for it to appear. An...
I've a MapServer logfile; it is created in
/tmp/mapserv.log
, but obviously it is flushed at every reboot, and is created only when a loggable event occurs.
I'm already using Multitail, but now I need to watch the folder /tmp
for a file that has not even been created, waiting for it to appear.
Any hint?
fradeve
(243 rep)
Apr 18, 2013, 10:05 AM
• Last activity: Dec 17, 2022, 08:08 PM
0
votes
0
answers
72
views
Triggering Multitail to start tailing when 'string' arrives
I am using multitail to monitor a group of logs. I have been seeking a solution in the multitail options to start tailing a log only after the arrival of a matched string. I see plenty of capability in multitail to use -e and/or -ev to include/exclude rows that match the regex criteria, but not so m...
I am using multitail to monitor a group of logs.
I have been seeking a solution in the multitail options to start tailing a log only after the arrival of a matched string. I see plenty of capability in multitail to use -e and/or -ev to include/exclude rows that match the regex criteria, but not so much using a "trigger" to start tailing.
I am currently targeting 4-6 logs, separate panes, not merged, where the criteria above would be applied to each log entry ( -i ).
I would appreciate thoughts on an approach.
Rental
(1 rep)
Apr 29, 2021, 12:18 AM
3
votes
3
answers
3522
views
multitail - custom config (multitail.conf) location
Is it possible to provide a custom location for `multitail.conf`, or are my only options `/etc/multiltail.conf` or `~/multitail.conf`? I'd like to provide a specific config file that has regexes specific to our app defined, but I can't put this in the account's home directory, or `/etc`. I care most...
Is it possible to provide a custom location for
multitail.conf
, or are my only options /etc/multiltail.conf
or ~/multitail.conf
?
I'd like to provide a specific config file that has regexes specific to our app defined, but I can't put this in the account's home directory, or /etc
.
I care most about the colors, so if it's possible to reference those from a separate file, then that would work well too.
phatmanace
(133 rep)
Jul 4, 2014, 09:14 PM
• Last activity: Dec 20, 2020, 11:20 AM
1
votes
0
answers
49
views
want to live monitor all log files in one vieuw
I like to view all log files live like `tail -n0 somelog.log` But then for literally all log files on the system (CentOS 7) Or an other way to do this is also nice. I want to output this to a web page eventually.
I like to view all log files live
like
tail -n0 somelog.log
But then for literally all log files on the system (CentOS 7)
Or an other way to do this is also nice.
I want to output this to a web page eventually.
spacecabbie
(11 rep)
Nov 30, 2019, 03:27 PM
• Last activity: Nov 30, 2019, 07:00 PM
3
votes
1
answers
2051
views
Apply multitail's filtering to many files passed via wildcard
[`multitail`][1] 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 "alsoignore...
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.
jstarek
(1742 rep)
Nov 28, 2019, 02:34 PM
• Last activity: Nov 29, 2019, 03:36 PM
-1
votes
1
answers
311
views
multitail over ssh AND sudo
This question: https://unix.stackexchange.com/questions/302559/multitail-over-ssh helped me to multitail from a remote location. But my problem is one step deeper: I need to run "sudo su" before I can tail the files. How can I change user to su before I tail the file with multitail -l "ssh dev-04 ta...
This question: https://unix.stackexchange.com/questions/302559/multitail-over-ssh
helped me to multitail from a remote location.
But my problem is one step deeper:
I need to run "sudo su" before I can tail the files.
How can I change user to su before I tail the file with
multitail -l "ssh dev-04 tail -f /opt/app/app.log"
Somaiah Kumbera
(101 rep)
Oct 30, 2019, 01:00 PM
• Last activity: Oct 30, 2019, 03:12 PM
2
votes
1
answers
460
views
monitor command outputs in separate windows within a terminal
For a list of input text, I want to execute a repetitive command using each element from the list. In addition I also need to monitor the results of each of these commands in parallel. So I am looking for a solution to display the repetitive commands output in separate windows in a single terminal c...
For a list of input text, I want to execute a repetitive command using each element from the list. In addition I also need to monitor the results of each of these commands in parallel. So I am looking for a solution to display the repetitive commands output in separate windows in a single terminal console; probably need a form of terminal multiplexer?
So far I have the following:
for i in
command1 find msgs/Poly
; do echo command2 echo "$i" ; multitail -l 'command2 echo "$i"' ; done
which seems to open only one window at a time.
Vivek
(121 rep)
Apr 1, 2015, 03:12 PM
• Last activity: Oct 25, 2017, 12:10 AM
11
votes
1
answers
5754
views
Multitail: Scroll up
I use multitail to view 3 log files at the same time. Let's say I notice something strange in the second log file. How to scroll up the second log file, to look back at what had happened earlier? Preferably without hiding the other two log files, because I want to keep an eye on them while investiga...
I use multitail to view 3 log files at the same time.
Let's say I notice something strange in the second log file.
How to scroll up the second log file, to look back at what had happened earlier?
Preferably without hiding the other two log files, because I want to keep an eye on them while investigating.
Nicolas Raoul
(8465 rep)
Apr 19, 2017, 07:09 AM
• Last activity: Apr 20, 2017, 04:03 PM
3
votes
0
answers
475
views
How do I scrolling through multitail output when using command line filters?
I'm currently filtering out unwanted lines when using multitail $ multitail -ev "foo|bar" -kr 0 55 -f /var/log/syslog The problem is, when I want to scroll back through the output, the only way I know of how to do this is using the b command. The problem is, b brings up a buffer window that has all...
I'm currently filtering out unwanted lines when using multitail
$ multitail -ev "foo|bar" -kr 0 55 -f /var/log/syslog
The problem is, when I want to scroll back through the output, the only way I know of how to do this is using the b command. The problem is, b brings up a buffer window that has all of the original (unfiltered) lines in it. How do I scroll through the output without seeing the lines that I don't care about?
FuriousGeorge
(131 rep)
Feb 21, 2017, 10:16 PM
• Last activity: Feb 21, 2017, 10:33 PM
3
votes
1
answers
3267
views
Multitail over ssh
I want to use [`multitail`](https://www.vanheusden.com/multitail/) over ssh. But following command fails: $ multitail "ssh dev-04 tail -f /opt/app/app.log" Error opening file ssh docdev-04 tail -f /opt/alfresco/share.log (No such file or directory) However just `ssh` with `tail` works fine and displ...
I want to use [
multitail
](https://www.vanheusden.com/multitail/) over ssh. But following command fails:
$ multitail "ssh dev-04 tail -f /opt/app/app.log"
Error opening file ssh docdev-04 tail -f /opt/alfresco/share.log (No such file or directory)
However just ssh
with tail
works fine and displays the content of the file:
$ ssh dev-04 tail -f /opt/app/app.log
Enter passphrase for key '/home/username/.ssh/id_rsa':
2016-08-03 09:40:27,926 INFO [org.springframework.extensions.webscripts.DeclarativeRegistry] [localhost-startStop-1] Registered 8 Package Description Documents (+0 failed)
I would guess that the problem is in the password request. But anyway I don't know how to make it work
streetturtle
(133 rep)
Aug 10, 2016, 01:15 PM
• Last activity: Aug 10, 2016, 01:39 PM
3
votes
1
answers
1056
views
How can I display \n as new lines in multitail?
I am using multitail to monitor logs while I program. I really like this tool. However, it is hard to use it to view object output in a php error log because new line characters `\n` are not processed. Does anyone know of a way to achieve this?
I am using multitail to monitor logs while I program. I really like this tool. However, it is hard to use it to view object output in a php error log because new line characters
\n
are not processed. Does anyone know of a way to achieve this?
fraxture
(172 rep)
Oct 30, 2015, 02:08 PM
• Last activity: Jun 6, 2016, 05:32 PM
0
votes
1
answers
807
views
Possible to prevent multitail from closing "finished" command windows?
Assume a multitail call like the following: multitail -s 2 -l "long-running-command" -l "short-running-command" Now, I would like to have both windows remain open, even after they are finished. However, multitail will just close the "short-running-command"-window once it exits. Which makes it kinda...
Assume a multitail call like the following:
multitail -s 2 -l "long-running-command" -l "short-running-command"
Now, I would like to have both windows remain open, even after they are finished. However, multitail will just close the "short-running-command"-window once it exits. Which makes it kinda useless for my use case.
I know there are workarounds like outputting to files and tailing those instead, but I wonder if there is a way to keep the windows open in multitail even after the process is finished, without creating new files.
TheSHEEEP
(135 rep)
Jan 30, 2016, 10:39 AM
• Last activity: Feb 5, 2016, 01:50 PM
2
votes
0
answers
341
views
How to combine many multitail parameters?
The .multitailrc file contains a color scheme called amir_log, which I load using `multitail -cS amir_log ~/wildfly/wildfly-8.2.1.Final/standalone/log/server.log` But there are ANSI color codes being displayed as `^{[32m`, for example. That is corrected with `-cT ANSI`. The file can be opened with `...
The .multitailrc file contains a color scheme called amir_log, which I load using
multitail -cS amir_log ~/wildfly/wildfly-8.2.1.Final/standalone/log/server.log
But there are ANSI color codes being displayed as ^{[32m
, for example. That is corrected with -cT ANSI
.
The file can be opened with multitail -cT ANSI -cS amir_log ~/wildfly/wildfly-8.2.1.Final/standalone/log/server.log
or -cT ANSI
at the end, but only the first parameter is detected.
Rasshu
(121 rep)
Nov 5, 2015, 11:39 AM
4
votes
1
answers
1054
views
Does multitail follow the inode or the file name by default?
For `logrotate`d files one usually uses `tail -F` instead of `tail -f` to follow the log file contents. Does [`multitail(1)`][1] automatically follow the name instead of the inode (which likely changes with the log rotation)? I sifted through the documentation and also searched on the web, but wasn'...
For
logrotate
d files one usually uses tail -F
instead of tail -f
to follow the log file contents. Does multitail(1)
automatically follow the name instead of the inode (which likely changes with the log rotation)?
I sifted through the documentation and also searched on the web, but wasn't able to come up with a conclusive answer.
----------
Thanks to the accepted answer I found that the man
page does mention the option I wanted, but uses the term "descriptor" instead of "inode". So this question and the answer should be the glue for the next person researching the topic.
-f Follow the following filename, not the descriptor.
--follow-all
For all files after this switch: follow the following filename, not the descriptor.
0xC0000022L
(16938 rep)
Jan 30, 2013, 08:48 PM
• Last activity: Sep 2, 2013, 10:05 PM
1
votes
1
answers
6456
views
How to highlight the whole log-line in color with multitail
I'm trying to use `multitail` to tail logs with color highlights. I defined a custom color scheme in multitail.conf, something like this: colorscheme:my-color cs_re:red:^\[E cs_re:yellow:^\[W cs_re:magenta:^\[D cs_re:green,,bold:All session(s) filled for.* What I want to achieve with each line: 1. C...
I'm trying to use
multitail
to tail logs with color highlights. I defined a custom color scheme in multitail.conf, something like this:
colorscheme:my-color
cs_re:red:^\[E
cs_re:yellow:^\[W
cs_re:magenta:^\[D
cs_re:green,,bold:All session(s) filled for.*
What I want to achieve with each line:
1. Color **the whole log-line** Red if it starts with string '[E'
2. Color ................................ Yellow if it starts with string '[W'
3. Color ................................ Magenta if it starts with string '[D'
4. Color ................................ Green if the line contains the string 'All session(s) filled for'
Unfortunately, none of the above is happening for me. For the first 3, it does color correctly the substring (e.g. '[E', '[W', etc) but not the whole log-line. In the last case, it doesn't color at all.
I also want to color the whole line by matching the third character of a line, e.g. color it Blue if the third character is 'A', how should I do this reliably with multitail
?
MLister
(217 rep)
Apr 12, 2013, 09:25 PM
• Last activity: Apr 12, 2013, 09:53 PM
Showing page 1 of 16 total questions