1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308
|
.\" Copyright Folkert van Heusden, 2003
.\" $Id: multitail.1,v 2.5.2.1 2003/05/11 19:12:01 folkert Exp folkert $
.\"
.\" This file may be copied under the conditions described
.\" in the GNU GENERAL PUBLIC LICENSE, Version 1, September 1998
.\" that should have been distributed together with this file.
.\"
.TH MULTITAIL 1 2003-04 "MultiTail"
.SH NAME
multitail \- browse through several files at once
.SH SYNOPSIS
.BI "multitail [" options "]
.sp
options:
.BI "[\-cs|\-Cs|\-c\-] [\-s] [\-i] inputfile [\-i anotherinputfile] [...]"
.sp
.SH DESCRIPTION
The program
.B multitail
lets you view one or multiple files like the original tail program. The difference is that it creates multiple windows on your console (with ncurses). Merging of 2 or even more logfiles is possible. It can also use colors while displaying the logfiles (through regular expressions), for faster recognition of what is important and what not. It can also filter lines (again with regular expressions). It has interactive menus for editing given regular expressions and deleting and adding windows. One can also have windows with the output of shell scripts and other software. When viewing the output of external software, MultiTail can mimic the functionality of tools like 'watch' and such. When new mail arrives for the current user, the statuslines will become green. To reset this "mail has arrived"-state, press ' ' (a space). For help at any time, press F1.
.PP
.SH OPTIONS
.TP
.B "\-i"
Input file. You can have multiple
.BI "\-i " file
parameters.
You only need to add
.BI "\-i " file
in front of a filename if the filename starts with a dash ('-').
.TP
.B "\-I"
Same as
.BI "\-i"
but add the output to the previous window (so the output is merged).
.TP
.B "-iw"
.B "-Iw"
Same as
.BI "\-i"
and
.BI "\-I"
but expects the parameter to be a wildcard and the second(!) an interval.
Initially MultiTail will start monitoring the first file with the most recent modification
time. Every interval it will check if any new files were created (or modified) and start tailing
that one. *Don't forget* to put quotation marks around the filename as otherwhise the shell will
try to substite them!
.TP
.B "\-l"
Command to execute in a window. Parameter is the command. Do not forget to use "'s if the external command needs parameter! (e.g. -l "ping host").
.TP
.B "\-L"
Same as
.BI "\-l"
but add the output to the previous window (so the output is merged).
.TP
.B "\-j"
Read from stdin (can be used only once as there is only 1 stdin).
.TP
.B "\-J"
Same as
.BI "-j"
but add the output to the previous window (so the output is merged).
.TP
.B "\-\-mergeall"
Merge all of the following files into the same window (see '--no-mergeall').
.TP
.B "\-\-no\-mergeall"
Stop merging all files into one window (see '--mergeall');
.TP
.B "\-\-no\-repeat"
When the same line is repeated, it will be suppressed while printing a "Last message repeated x times" message.
.TP
.B "\-\-mark\-interval x"
Print every 'x' seconds a mark-line when nothing else was printed.
.TP
.B "\-q i path"
Check path for new files with interval 'i', all in new windows. One can enter paths here understood by the shell. E.g. "/tmp/*". Note: do not forget to add quotes around the pathname to prevent the shell from parsing it!
.TP
.B "\-Q i path"
Like -q: but merge them all in one window.
.TP
.B "\-\-new\-only"
For -q/-Q: only create windows for files created after multitail was started.
.TP
.B "\-\-closeidle x
Close windows when more then 'x' seconds no new data was processed.
.TP
.B "\-a x"
Write the output also to file 'x' (like 'tee') AFTER it was filtered by MultiTail.
.TP
.B "\-A x"
Write the output also to file 'x' (like 'tee') BEFORE it was filtered by MultiTail.
.TP
.B "-g x"
Send the output also to command 'x' AFTER it was filtered by MultiTail.
.TP
.B "-G x"
Send the output also to command 'x' BEFORE it was filtered by MultiTail.
.TP
.B "\-S"
Prepend merged output with subwindow-number.
.TP
.B "\-t" title
With this switch, "title" is displayed in the statusline instead of the filename or commandline.
.TP
.B "\-n" number_of_lines
Number of lines to tail initially. The default depends on the size of the terminal-window.
.TP
.B "\-r" interval
Restart the command (started with -l/-L) after it has exited. With interval you can set how long to sleep before restarting.
.TP
.B "\-R" interval
Same as -r, only with this one only the difference is displayed.
.TP
.B "\-rc" / "\-Rc" interval
Like \-r / \-R but clears the window before each iteration.
.TP
.B "\-h"
The help.
.TP
.B "\-f"
Follow the following filename, not the descriptor.
.TP
.B "\-fr" filter
Use the predefined filter(s) from the configfile.
.TP
.B "\-e"
Use the next regular expression on the following file.
.TP
.B "\-ex"
Use regular expression on the following file and execute the command when it matches.
.TP
.B "\-ec"
Use regular expression on the following file and display the matches.
.TP
.B "\-eC"
Use regular expression on the following file but display everything and display the matches inverted.
.TP
.B "\-E"
Use the next regular expression on the following files.
.TP
.B "\-v"
Negate the next regular expression.
.TP
.B "\-s x"
Splits the screen vertically in 'x' columns.
.TP
.B "\-sw x"
At what position to split the screen. e.g. '-sw 20,40,,10' (=4 columns)
.TP
.B "\-sn x"
How many windows per column for vertical split (use with -s or -sw). e.g. '-sn 3,,2'.
.TP
.B "\-wh x"
Sets the height of a window (advisory: if it won't fit, the height is adjusted).
.TP
.B "\-cS" scheme
Show the next given file using the colorscheme selected with 'scheme' (as defined in multitail.conf).
.TP
.B "\-CS" scheme
Show all following files using the colorscheme selected with 'scheme' (as defined in multitail.conf).
.TP
.B "\-csn"
Extra switch for the following switches; do not use reverse (inverted) colors.
.TP
.B "\-cs"
Show the next given file in colors (syslog).
.TP
.B "\-c"
Show the next given file in colors.
.TP
.B "\-Cs"
Show all following files in color (through syslog-scheme).
.TP
.B "\-C"
Show all following files in color.
.TP
.B "\-Cf field_index delimiter"
Show all following files in color depending on field selected with field_index. Fields are delimited by the defined delimiter.
.TP
.B "\-cf field_index delimiter"
Show the next file in color depending on field selected with field_index. Fields are delimited by the defined delimiter.
.TP
.B "\-ci color"
Use a specific color. Usefull when merging multiple outputs.
.TP
.B "\-cT terminalmode"
Interpret terminal codes. Only ANSI supported at this time.
.TP
.B "\-c\-"
Do NOT colorize the following file.
.TP
.B "\-C\-"
Do NOT colorize the following files.
.TP
.B "\-ts"
Add a timestamp to each line (format is configurable in multitail.conf).
.TP
.B "\-Z color"
Specify the color-attributes for the markerline.
.TP
.B "\-T"
A timestamp will be placed in the markerline.
.TP
.B "\-d"
Do NOT update statusline.
.TP
.B "\-D"
Do not display a statusline at all.
.TP
.B "\-z"
Do not display "window closed" windows.
.TP
.B "\-u"
Set screen updateinterval (for slow links).
.TP
.B "\-m nlines"
Set buffersize
Set
.BI "nlines"
to 0 (zero) if you want no limits on the buffering.
.TP
.B "\-mb x"
Set scrollback buffer size (in bytes, use xKB/MB/GB).
.TP
.B "\-M nlines"
Set the buffersize on ALL following files.
.TP
.B "\-p x [y]"
Set linewrap: 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 offset 'y'.
.TP
.B "\-P x [y]"
Like -p but for all following windows.
.TP
.B "\-ke x"
Strip parts of the input using regular expression 'x'.
.TP
.B "\-kr x y"
Strip parts of the input starting at offset x and ending (not including!) offset y.
.TP
.B "\-kc x y"
Strip parts of the input: strip column 'y' with delimiter 'x'.
.TP
.B "\-w"
Do not use colors.
.TP
.B "\-b" n
Sets the TAB-width.
.TP
.B "\--config" filename
Load the configuration from given filename.
.TP
.B "\-x"
Set xterm-title: %f will be replaced with the last changed file, %h with the hostname, %l with the load of the system, %m with "New mail!" when the current user has new mail, %u with the current effective user, %t timestamp of last changed file, %% with a %
.TP
.B "\-o" configfile-item
Proces a configurationfile item via the commandline in case you cannot edit the default configfile.
.TP
.B "\-V"
Show the version and exit.
.SH KEYS
You can press a couple of keys while the program runs.
To see a list of them, press F1 (or ^h). You can press F1 (or ^h) at any time: it
gives you context related information.
Press 'Q' to exit the program.
.SH EXAMPLES
.TP
.B "multitail /var/log/apache/access_log logfile \-i \-filestartingwithdatsh"
This creates three windows. One with the contents of /var/log/apache/access_log, one with the contents of logfile and so on.
.TP
.B "multitail -R 2 -l \(dqnetstat -t\(dq"
This runs netstat every 2 seconds and then shows what has changed since the previous run. That way one can see new connections being made and closed connections fading away.
.TP
.B "multitail logfile \-l \(dqping 192.168.1.3\(dq
This creates two windows. One with the contents of logfile, one with with the output of 'ping 192.168.1.3'.
.TP
.B "multitail /var/log/apache/access_log \-I /var/log/apache/error_log"
This creates
.BI "one"
window with the contents of /var/log/apache/access_log
.BI "merged"
with the contents of /var/log/apache/error_log.
.TP
.B "multitail \-M 0 /var/log/apache/access_log \-I /var/log/apache/error_log"
Same as previous example. This example will store all logged entries in a buffer so that you can later on browse through them (by pressing '
.BI "b"
').
.SH BUGS
None. This program is totally bug-free.
.PP
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.
.SH "SEE ALSO"
.BR http://www.vanheusden.com/multitail/
.SH NOTES
This page describes
.B multitail
as found in the multitail-3.9.10 package; other versions may differ slightly.
Mail corrections and additions to folkert@vanheusden.com.
Report bugs in the program to folkert@vanheusden.com.
|