View a log file in Linux dynamically [closed]

2019-01-30 10:22发布

I have a log file in .csv format in Linux, that is being updated continuously. I want to view the log file as it is being updated. Is there any Linux command(s) to do that?

标签: linux logging
8条回答
放我归山
2楼-- · 2019-01-30 10:50

Just in case you want to monitor multiple files, there is a nice tool called multitail that lets you merge the output from two or more files and track them in real time. multitail also lets you navigate back and forth in the monitored file(s).

查看更多
疯言疯语
3楼-- · 2019-01-30 10:51

vsConsole FileView may help if you prefer to monitor your logs via a web application. See the demo at http://demo.vamonossoftware.com/

Requires you run a java app server, deploy vsConsole to it, and run agents on the server containing the logs - so I'm guessing its a more heavy weight solution than what you need here. (Its good for dev/testing teams who just want to click on a log file to see it rather than ssh, cd, tail etc)

查看更多
做自己的国王
4楼-- · 2019-01-30 10:52

tail -lf logfile.csv.

If you logged on to GUI, you can use mousepad to view the log dynamically.

查看更多
做个烂人
5楼-- · 2019-01-30 10:53

tail -f and all its friends are old school. multitail looks better but the real way to burn CPU watching your log files is to use glTail.

查看更多
成全新的幸福
6楼-- · 2019-01-30 11:00

tail -f foo.csv

查看更多
走好不送
7楼-- · 2019-01-30 11:03

tail -f yourlog.csv

Newly appended lines will continuously show.

查看更多
登录 后发表回答