multitail使用小技巧
查看命令执行日志
From GLXPC.lan (192.168.99.125) icmp_seq=2 Redirect Network(New nexthop: xyun.co (192.168.99.1)
From GLXPC.lan (192.168.99.125) icmp_seq=3 Redirect Network(New nexthop: xyun.co (192.168.99.1)
From GLXPC.lan (192.168.99.125) icmp_seq=4 Redirect Network(New nexthop: xyun.co (192.168.99.1)
From GLXPC.lan (192.168.99.125) icmp_seq=5 Redirect Network(New nexthop: xyun.co (192.168.99.1)
)
From GLXPC.lan (192.168.99.125): icmp_seq=5 Redirect Network(New nexthop: xyun.co (192.168.99.1
))
64 bytes from 115.239.210.27 (115.239.210.27): icmp_seq=5 ttl=54 time=16.4 ms
From GLXPC.lan (192.168.99.125) icmp_seq=6 Redirect Network(New nexthop: xyun.co (192.168.99.1)
)
From GLXPC.lan (192.168.99.125): icmp_seq=6 Redirect Network(New nexthop: xyun.co (192.168.99.1
))
64 bytes from 115.239.210.27 (115.239.210.27): icmp_seq=6 ttl=54 time=16.3 ms
From GLXPC.lan (192.168.99.125) icmp_seq=7 Redirect Network(New nexthop: xyun.co (192.168.99.1)
)
From GLXPC.lan (192.168.99.125): icmp_seq=7 Redirect Network(New nexthop: xyun.co (192.168.99.1
))
64 bytes from 115.239.210.27 (115.239.210.27): icmp_seq=7 ttl=54 time=15.9 ms
From GLXPC.lan (192.168.99.125) icmp_seq=8 Redirect Network(New nexthop: xyun.co (192.168.99.1)
)
From GLXPC.lan (192.168.99.125): icmp_seq=8 Redirect Network(New nexthop: xyun.co (192.168.99.1
))
64 bytes from 115.239.210.27 (115.239.210.27): icmp_seq=8 ttl=54 time=16.7 ms
From GLXPC.lan (192.168.99.125) icmp_seq=9 Redirect Network(New nexthop: xyun.co (192.168.99.1)
)
From GLXPC.lan (192.168.99.125): icmp_seq=9 Redirect Network(New nexthop: xyun.co (192.168.99.1
))
64 bytes from 115.239.210.27 (115.239.210.27): icmp_seq=9 ttl=54 time=17.7 ms
*** selecting files to follow ***
-i x the following parameter is a filename (in case it starts with a dash)
-I x like -i only this one merges this logfile into the previous window
-q x z check every x seconds for new files by search criteria z, create a new window
for those
-qs x y z check every x seconds for new files by search criteria z, create a new window
for those, use color scheme y
-Q x z check every x seconds for new files by search criteria z, put them all in the
same window (using subwindows)
-Qs x y z check every x seconds for new files by search criteria z, put them all in the
same window (using subwindows), use color scheme y
-iw file i check every 'i' seconds if 'file' appeared in the filesystem
--new-only (for -q/-Q) only create windows for files created after multitail was started,
existing files are ignored
-f follow the following filename, not the descriptor (e.g. when logrotate
archives logfiles)
--follow-all see -f: for all files after this switch
--retry keep trying to open the following file until it is accessible
--retry-all like --retry but for all following files
*** selecting command output to follow ***
-l x parameter is a command to be executed
-L x see -l but merge the output to a previously created window
-r interval restart the command when it terminated after `interval' seconds
-R interval like -r, but only show the differences
-Rc/-rc interval like -r/-R but clean the window before each iteration
-j read from STDIN (can be used only once)
-J like -j but merge into previous window
--listen [interface]:port behave like a syslog server. port is normally 514
--Listen [interface]:port like --listen but merge into previous window
*** merge parameters ***
--mergeall merge all of the following files into the same window (in the previous window)
--mergeall-new merge all of the following files into the same window (in a new window)
--no-mergeall stop merging all files into one window
--no-repeat suppress repeating lines and replace them with a "last message repeated x
times"
*** markers ***
--mark-interval x when nothing comes in, print a '---mark---' line every 'x' seconds
--mark-change when multiple files are merged an multitail switches between two windows,
print a markerline with the filename
--no-mark-change do NOT print the markerline when the file changes (overrides the configuration
file)
*** initial tail / scrollback parameters ***
-n x initial number of lines to tail
-m x set scrollback buffer size (# lines)
-mb x set scrollback buffer size (in bytes, use xKB/MB/GB)
-bw a/f what to buffer: 'a'll or what went through the 'f'ilter
*** "tee" functionality ***
-a x like 'tee': write (filtered) input to file 'x'
-A x see -a: but write the unfiltered(!) input to file 'x'
-g x redirect the input also (filtered) to command/process 'x'
-G x redirect the unfiltered input also to command/process 'x'
*** screen layout ***
-s x vertical split screen (in 'x' columns)
-sw x,x,... at what columns to split the screen, use '0' for automatic size
-sn x,x,... number of windows per column
-wh x height of window
*** filtering ***
-fr scheme use the predefined filter from the configuration file
-e[m] print only when matching with this regexp
-ev print only when NOT matching with this regexp
-ec use regular expression but display the matches inverted on following file
-eC use regexp, display everything but matches inverted on following file
-ex execute command ('-ex regexp command') when matches, matching line is given as
commandline parameter
-eX like -ex but only give the matching substring as commandline parameter to the
command
-E use regular expression on following files
-Ec use regular expression but display the matches inverted on following files
-EC use regexp, display everything but matches inverted on following files
-ke x strip parts of the input using regular expression 'x'
-kr x y strip parts of the input starting at offset x and ending (not including!)
offset y
-kc x y strip parts of the input: strip column 'y' with delimiter 'x'
-ks x use edit scheme 'x' (defined in configuration file)
-kS x only show the substrings matched by the substring-selects (the parts between
'(' and ')') in the regular epxression 'x'
-v invert next regular expression (do not use with -ev/em)
*** colors ***
-cv x use conversion scheme 'x' (see multitail.conf)
-c colorize current
-cS scheme use color scheme 'scheme' (as defined in multitail.conf)
-csn extra switch for the following switches; do not use reverse (inverted) colors
-Cs colorize all following files with syslog-scheme
-C colorize all following files
-Cf/-cf field delimiter colorize next/all file(s) depending on the given field number. fields
are delimited with the given field-delimiter
-ci color use 'color' (red, green, etc), usefull when merging multiple inputs
-c- do NOT colorize the following file
-C- do NOT colorize the following files
-cT term interpret terminal-codes from file/command (for terminal type 'term')
-Z color set color for markerline
-w do not use colors
*** timestamps ***
-ts add a timestamp (format configurable in multitail.conf) before each line
-T put a timestamp in markerlines
*** status line parameters ***
-d do NOT update the status-line
-D do not display a status-line at all
-du put the statusline above the data window
*** status line parameters ***
-z do not show "window closed" pop-ups
-x str show "str" in the xterm title bar
-t x display 'x' in the window-title (when MultiTail runs in an xterm)
-u set update interval (for slow links)
*** input text handling ***
-p x [y] set linewrap (l=left/a=all/r=right/s=syslog,S=syslog w/o procname,o=offset ->
'y',w=wordwrap)
-P like -p but for all following files
-b n set TAB-width
--cont reconnect lines with a '' at the end
*** line prefixes ***
--basename only display the filename (and not the path) in the statusline
--label x put in front of each line
-S prepend show subwindow number in merged output
*** configuration file ***
-F file use 'file' as configuration file (instead of /etc/multitail.conf)
--no-load-global-config do not read /etc/multitail.conf
-o config_file_parameter do a setting which would normally be set in the configuration file
*** monitoring ***
-H x show heartbeat (to keep your sessions alive)
--beep-interval x beep every x lines processed
--bi x like '--beep-interval' but only for current (sub-)window
--closeidle x close windows when more then 'x' seconds no new data was processed
*** miscellaneous ***
-V show version and exit
-h this help
You can have multiple regular expressions per file/command. Be warned: if
you define multiple and one of them is specified with '-E' (=for every
following file), _all_ of the current regular expressions are for all
following files!
For help at any time press F1.
multitail使用小技巧相关推荐
- latex 公式不居中_LaTex小技巧,祝你论文一臂之力!
LaTex作为常用的排版系统,已深入到大家的工作和学业中.但是很多小伙伴反馈说:LaTex公式编辑复杂.表格处理麻烦等.为此,我们特别收集了一些LaTex的小技巧,希望大家都可以get到! 公式篇 首 ...
- 中文 查询_查询商标,商标注册通过分析的几个小技巧
前面我们说到了商标注册前,通常情况下一定要进行商标查询,要进行注册通过可行性分析.只有这样才能保证基本的商标注册通过率,不至于无畏的浪费我们的时间和金钱. 1.我们在进行商标查询,输入要查询的商标时, ...
- 日常安排php,PHP日常开发小技巧
PHP日常开发小技巧 导语:PHP语言中,如果你懂得一些开发技巧,那么对你学PHP,会有很大的帮助.下面的是百分网小编为大家整理的PHP日常开发小技巧,希望对你能有所帮助. PHP批量取得checkb ...
- 敲代码括号技巧_阅码神奇Souceinsight使用小技巧总结
/****与SI的初遇****/ 对于大部分人第一次使用SI来说应该是对原IDE集成开发环境有很大的抱怨吧,确实我也一样,对于做嵌入式开发使用各种集成开发工具,比如说Keil,IAR等等,可能还有更加 ...
- eplan文本怎么换行_EPLAN几个使用的小技巧,非常有用
Eplan P8 的一些小技巧 1. 页名后缀由字母变数字 ? 选项 - 设置 - 项目 - 管理 - 页 - 页名 - 子页标识 2. 修改自动连接电缆颜色 ? 选项 - 层管理 - 符号图形 3. ...
- rust熔炉怎么带走_Rust游戏中12个实用小技巧,包含无伤下坠、直梯爬楼
Rust是一款第一人称生存网络游戏,有点像野外求生,但这款游戏内容则更加丰富.刺激.血腥. 在这款游戏中玩家的第一任务就是活下来,而想要活下来你将要接受饥饿.干渴.寒冷等.游戏中玩家需要建造自己的庇护 ...
- ASP.NET2.0 GridView小技巧汇粹
1)GridView绑定数据源控件,需要有编辑和删除选项按钮时,数据源控件必须提供SQL操作语句或存储过程调用,一般,我的推荐做法是,使用无意义的SQL语句或存储过程来使GridView的编辑和删除按 ...
- ps背景不变换字_分享五个超级实用的PS小技巧
今天西瓜给大家分享五个PS的小技巧,特别容易上手操作而且很实用! 1.利用剪切蒙版给衣服加图案 首先第一步我们打开素材,使用快速选择工具,把裙子选出来,然后Ctrl+J复制出来 打开花纹背景素材,Ct ...
- window.open的小技巧分享(转)
今天再次谈起window.open是因为发现了一个比较好玩的小技巧,详细内容我们稍后详细说明. 聊到window.open,不得不说明一下他的使用方法,主要有两种形式: window.open()没有 ...
最新文章
- Redis数据库如何实现读写分离
- cefsharp重写默认js弹窗(alert/confirm/prompt)
- 手机吃鸡登显示服务器繁忙,国际版吃鸡登录一直显示服务器繁忙 | 手游网游页游攻略大全...
- linux下图像分析程序,三 - Linux+C语言:数字图像处理源程序_Linux编程_Linux公社-Linux系统门户网站...
- PyTorch:数据读取1 - Datasets及数据集划分
- ET2017万能免狗安装包(不弹窗)
- Qt5开发工具---常用Qt5开发工具(附下载地址)
- Laravel框架介绍与简介
- 计算机原理电梯控制系统设计,基于PLC电梯控制系统的设计
- Java 方法的重载与重写
- ENVI5.3.1使用Landsat 8影像进行监督分类实例操作
- Android安卓 自定义mapbox地图比例尺
- c语言汇率转换代码_原生JS实现汇率转换功能代码实例
- 钟汉良日记:做短视频和直播的基础能力
- boot中jar包部署的方式读取classes下的文件
- latex怎么看论文字数_LaTeX | 为学术论文排版而生【公式篇】
- 交换机和路由器技术-13-三层交换
- python的range函数用法和实例
- (一)软件测试专题——之Linux常用命令篇01
- CI/CD之Jenkins+Gitlab