您的位置:首页 > 其它

WATCH YOUR NOVA LOG AT THE SAME TIME

2013-05-09 09:12 453 查看
I never thought about blogging this, but I think it can be useful for those of you who don’t know this little tool called: Multitail. This tool can really change everyday life for every system administrator.
Basicaaly, multitail offers you the possibility to watch simultaneously several logs files, for this it will split your terminal window in the way you configured it.

First of all install it:

1

$ sudo apt-get install multitail

A good example, here the one I use to check the logs from my compute nodes. Ideally any ccze support to color your logs would be appreciate otherwise you’ll have to this task manually.

12
3
4
5
6

#!/bin/bash

multitail -s 2 \
-t nova-compute.log -l "tail -f /var/log/nova/nova-compute.log" \
-t nova-network.log -l "tail -f /var/log/nova/nova-network.log" \
-t nova-api-metadata.log -l "tail -f /var/log/nova/nova-api-metadata.log"

Hope it helps!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐