LinuxCommandLibrary

multitail

allows viewing multiple log files in a single terminal window

TLDR

Follow multiple files

$ multitail [file1.log] [file2.log]
copy
Split screen horizontally
$ multitail -s 2 [file1.log] [file2.log]
copy
Merge files in one window
$ multitail -I [file1.log] -I [file2.log]
copy
Follow with color scheme
$ multitail -cS [apache] [access.log]
copy
Execute and follow command
$ multitail -l "[command]"
copy
Follow with timestamp
$ multitail -ts [file.log]
copy

SYNOPSIS

multitail [options] [files...]

DESCRIPTION

multitail allows viewing multiple log files in a single terminal window. It splits the screen to show different files or merges them with color coding.
The tool provides filtering, searching, and highlighting capabilities for effective log monitoring.

PARAMETERS

-s n

Split in n columns.
-I file
Merge file into previous.
-l cmd
Execute command and follow.
-L cmd
Same as -l but restart on exit.
-cS scheme
Color scheme.
-ts
Add timestamp.
-f
Follow mode.
-i file
Add file in new window.
-n lines
Number of lines per window.
-m lines
Scrollback buffer size.

CAVEATS

Complex layouts take practice. Color schemes need configuration. Many files may clutter display. Resource usage scales with files.

HISTORY

multitail was created by Folkert van Heusden to extend tail's functionality to multiple files. It addresses the common need to monitor several log files simultaneously.

SEE ALSO

tail(1), less(1), lnav(1), watch(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community