MULTITAIL(1)
π MULTITAIL π
okay bestie, welcome to MultiTail, aka the manual page for the gloriously extra file-peeping tool. it's a General Commands Manual situation, and the whole vibe is: browse through several files at once π¦
β¨ NAME β¨
MultiTail β browse through several files at once π
π SYNOPSIS π
multitail [options]
options: [-cs|-Cs|-c-] [-s] [-i] inputfile [-i anotherinputfile] [...]
like, that's the shape of it. options, then your input files, and you can stack up as many -i inputfiles as your little heart desires π
πΈ DESCRIPTION πΈ
okay so. MultiTail lets you view one or multiple files, exactly like the original tail program does. but here's the twist that makes it iconic: it creates multiple windows on your console (using ncurses). not one window. multiple. main character energy for your terminal π₯
it can also monitor wildcards: if another file matching the wildcard has a more recent modification date, it will automatically switch to that file. so like, you can monitor a whole entire directory of files and it just handles it. no cap π«Ά
merging 2 or even more logfiles is possible. yes bestie, the logs can share a window. they can be together. it's giving community π
it can also use colors while displaying the logfiles β through regular expressions β for faster recognition of what's important and what's... not. your eyeballs deserve this π
it can also filter lines (again, with regular expressions). filter out the noise, keep the slay β¨
it has interactive menus for editing given regular expressions and for deleting and adding windows. you're not stuck with your choices, you can just change your mind mid-stream π
one can also have windows with the output of shell scripts and other software. when you're viewing the output of external software, MultiTail can mimic the functionality of tools like 'watch' and such. it's a shapeshifter π«
πΈ mail alert moment: when new mail arrives for the current user, the statuslines will become green. to reset this "mail has arrived"-state, press ' ' (a space). green means go read your mail, bestie π
π stuck? for help at any time, press F1. F1 is your bestie. F1 will never leave you π
more coming, don't go anywhere π
β¨ OPTIONS β¨
okay bestie, this is the big one, the whole menu of switches, and yes we're going through all of them because every single one matters π
-i fileβ pick a file to monitor. you can stack as many-i fileparams as you want π«Ά you only actually need the-i filein front of a filename if that filename starts with a dash (-), otherwise just drop it in.-I fileβ literally the same as-i filebut the output gets tossed into the previous window instead of a fresh one (so yeah, it's merged β¨).-iw file interval/-Iw file intervalβ like-i/-Iexcept the first param is a wildcard and the second(!) is an interval. at first MultiTail starts monitoring the first file with the most recent modification time, and then every interval it checks if any new files got created (or modified) and starts tailing that one π don't forget to wrap the filename in quotation marks, otherwise the shell will try to substitute them and it's giving chaos π-l commandβ a command to execute in a window. the param is the command. do not forget to use"s if the external command needs parameters! (e.g.-l "ping host").-L commandβ same as-lbut the output gets added to the previous window (merged, again π).-jβ read from stdin (can only be used once, because there is only 1 stdin, obviously πΈ).-Jβ same as-jbut the output goes into the previous window (merged π).--mergeallβ merge all of the following files into the same window (peep--no-mergeall).--no-mergeallβ stop merging all files into one window (peep--mergeall).--no-repeatβ when the same line keeps repeating, it gets suppressed while printing a"Last message repeated x times"message instead. no more spam, we love to see it π--mark-interval xβ print a mark-line everyxseconds when nothing else was printed.-q i pathβ checkpathfor new files with intervali, all in new windows. you can enter paths here that the shell understands, e.g."/tmp/*". note: do not forget to add quotes around the pathname so the shell doesn't try to parse it! β-Q i pathβ like-qbut merge them all into one window.--new-onlyβ for-q/-Q: only create windows for files created after MultiTail was started.--closeidle xβ close windows when no new data was processed for more thanxseconds.-a xβ write the output also to filex(liketee) AFTER it was filtered by MultiTail. note: you need to put-a fileBEFORE the file you're monitoring! this ordering thing is not a vibe, it's just how it is π-A xβ write the output also to filex(liketee) BEFORE it was filtered by MultiTail. also see the note for-aabove π-g xβ send the output also to commandxAFTER it was filtered by MultiTail.-G xβ send the output also to commandxBEFORE it was filtered by MultiTail.-Sβ prepend merged output with the subwindow-number.-t titleβ with this switch, title is displayed in the statusline instead of the filename or commandline.-n number_of_linesβ number of lines to tail initially. the default depends on the size of the terminal-window π¦-N number_of_linesβ like-nbut this parameter gets used for all files/commands you tail after this parameter.-r intervalβ restart the command (the one started with-l/-L) after it has exited. with interval you set how long to sleep before restarting.-R intervalβ restarts a command like-ronly this one shows the difference in output compared to the previous run π-rc/-Rc intervalβ like-r/-Rbut clears the window before each iteration.-hβ the help.-fβ follow the following filename, not the descriptor.--follow-allβ for all files after this switch: follow the following filename, not the descriptor.-fr filterβ use the predefined filter(s) from the configfile.-eβ use the next regular expression on the following file.-exβ use regular expression on the following file and execute the command when it matches. the command gets the whole matching line as its commandline parameter.-eXβ like-exbut only give the matching substring as the parameter. this requires a regular expression with(and).-ecβ use regular expression on the following file and display the matches.-eCβ use regular expression on the following file but display everything, and display the matches inverted.-Eβ use the next regular expression on the following files.-vβ negate the next regular expression.-s xβ splits the screen vertically inxcolumns.-sw xβ at what position to split the screen. e.g.-sw 20,40,,10(=4 columns) β¨-sn xβ how many windows per column for a vertical split (use with-sor-sw). e.g.-sn 3,,2.-wh xβ sets the height of a window (advisory: if it won't fit, the height is adjusted).-cS schemeβ show the next given file using the colorscheme selected with scheme (as defined inmultitail.conf).-CS schemeβ show all following files using the colorscheme selected with scheme (as defined inmultitail.conf).-csnβ extra switch for the following switches; do not use reverse (inverted) colors.-csβ show the next given file in colors (syslog).-cβ show the next given file in colors.-Csβ show all following files in color (through the syslog-scheme).-Cβ show all following files in color.-Cf field_index delimiterβ show all following files in color depending on the field selected with field_index. fields are delimited by the defined delimiter.-cf field_index delimiterβ show the next file in color depending on the field selected with field_index. fields are delimited by the defined delimiter.-ci colorβ use a specific color. super useful when you're merging multiple outputs π-cT terminalmodeβ interpret terminal codes. only ANSI is supported at this time.-c-β do NOT colorize the following file.-C-β do NOT colorize the following files.-tsβ add a timestamp to each line (the format is configurable inmultitail.conf).-Z colorβ specify the color-attributes for the markerline.-Tβ a timestamp will be placed in the markerline.-dβ do NOT update the statusline.-Dβ do not display a statusline at all.-duβ put the statusline above the data window.-zβ do not display"window closed"windows.-uβ set screen updateinterval (for slow links).-m nlinesβ set buffersize. set nlines to0(zero) if you want no limits on the buffering.-mb xβ set scrollback buffer size (in bytes, usexKB/MB/GB).-M nlinesβ set the buffersize on ALL following files.-p x [y]β set linewrap, and it's giving options on options:a= print everything including linewrap.l= just show everything starting at the left until the rightside of the window is reached.r= show everything starting from the right of the line.s= show everything starting with the processname.S= show everything starting after the processname.o= show everything starting at offsety.
-P x [y]β like-pbut for all following windows.-ke xβ strip parts of the input using regular expressionx.-kr x yβ strip parts of the input starting at offsetxand ending (not including!) offsety.-kc x yβ strip parts of the input: strip columnywith delimiterx.-ks xβ use editschemexfrom the configfile.-wβ do not use colors.-b nβ sets the TAB-width.--config filenameβ load the configuration from the given filename.-xβ set xterm-title. here's the cheat sheet for the placeholders, no cap:%fgets replaced with the last changed file%hwith the hostname%lwith the load of the system%mwith"New mail!"when the current user has new mail%uwith the current effective user%ttimestamp of last changed file%%with a%
-o configfile-itemβ process a configurationfile item via the commandline, in case you cannot edit the default configfile.--contβ reconnect lines with a'Β΄at the end.--mark-interval intervalβ when nothing comes in, print a'---mark---'line every interval seconds.--mark-changeβ when multiple files are merged and multitail switches between two windows, print a markerline with the filename.--no-mark-changeβ do NOT print the markerline when the file changes (this one overrides the configfile).--label textβ put text in front of each line. useful when merging multiple files and/or commands.--retryβ keep trying to open the following file if it is inaccessible.--retry-allβ like--retrybut for all following files.-cv xβ use conversion schemex(seemultitail.conf).--basenameβ only display the filename (and not the path) in the statusline.-F fileβ usefileas configfile (instead of the default configfile).--no-load-global-configβ do NOT load the global configfile.--beep-interval xβ let the terminal beep for everyx-th line processed. pressiin the main menu to see how many times it beeped π--bi xβ like--beep-intervalbut only for the current (sub-)window. stats on the number of beeps can be found in the statistics for this (sub-)window β presstin the main menu.-Hβ show heartbeat (to keep your sessions alive) π«-Vβ show the version and exit.
π KEYS π
you can press a couple of keys while the program runs, bestie. to see a list of them, press F1 (or ^h) π
the really iconic part: you can press F1 (or ^h) at any time β it gives you context related information, like it just knows what you need π
press q to exit the program. bye bestie, it's been real π
π EXAMPLES π
Okay bestie, this is the part where it all clicks. There's a whole pile more examples (and other examples) over at http://www.vanheusden.com/multitail/examples.html β go look, it's giving inspiration.
multitail /var/log/apache/access_log logfile -i -filestartingwithdatsh
This one creates three windows. One with the contents of /var/log/apache/access_log, one with the contents of logfile, and so on. β¨ (Yes, -i is there doing its thing and -filestartingwithdatsh is the wildcard one, iykyk.)
multitail -R 2 -l "netstat -t"
This runs netstat every 2 seconds and then shows what has changed since the previous run. That way you can literally watch new connections being made and closed connections fading away. Main character energy for your network. π
multitail logfile -l "ping 192.168.1.3"
This creates two windows. One with the contents of logfile, one with the output of ping 192.168.1.3. π«Ά
multitail /var/log/apache/access_log -I /var/log/apache/error_log
This creates one window with the contents of /var/log/apache/access_log merged with the contents of /var/log/apache/error_log. Two logs, one vibe. π¦
multitail -M 0 /var/log/apache/access_log -I /var/log/apache/error_log
Same as the previous example, no cap. This one will store all logged entries in a buffer so that you can later on browse through them β by pressing b. π
π FILES π
${XDG_CONFIG_HOME}/multitail/configβ this is the config spot if${XDG_CONFIG_HOME}is defined.${HOME}/.multitailrcβ this is the config spot if${HOME}is defined.~/.multitailrcβ when neither${XDG_CONFIG_HOME}nor${HOME}is defined, it falls back to this, which will use(struct passwd*)pp->pw_dirfrom thepwd.hstandard header. (deep lore fr fr)
π BUGS π
Not me having to tell you this, butβ¦ as this program grew larger and larger over the time with new functionality sometimes added ad-hoc, some bugs may have been introduced. π Please notify folkert@vanheusden.com if you find any.
Wellβ¦ except for the resizing of your terminal window. The program might crash when doing such things. Upgrading the ncurses library to at least version 5.3 might help in that case. π
Real talk: resizing = possible crash. That's not a you problem, that's a known thing.
π SEE ALSO π
β NOTES β
This page describes MultiTail as found in the installed multitail package; other versions may differ slightly. Mail corrections and additions to folkert@vanheusden.com. Report bugs in the program to folkert@vanheusden.com. (Same email, two jobs β she's versatile. π )
And that's the whole page, bestie!! π MultiTail, dated 2007-02, living in section MULTITAIL(1). Go tail some logs, you absolute icon. π«ΆπΈβ¨
π¦ where this page comes from
- alpine 3.24: multitail-doc 7.1.5-r0 Β· Apache-2.0
- debian trixie: multitail 7.1.5-2
- epel 10: multitail 7.1.3-2.el10_0 Β· MIT
- epel 9: multitail 7.1.3-1.el9 Β· MIT
- fedora 43: multitail 7.1.5-2.fc43 Β· MIT
- fedora 44: multitail 7.1.5-3.fc44 Β· MIT
- ubuntu questing: multitail 7.1.5-2
- ubuntu resolute: multitail 7.1.5-2build1
- ubuntu stonking: multitail 7.1.5-2build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms