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?
相关问题
- Is shmid returned by shmget() unique across proces
- how to get running process information in java?
- I want to trace logs using a Macro multi parameter
- Error message 'No handlers could be found for
- convert logback.xml to log4j.properties
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).
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)
tail -lf logfile.csv.
If you logged on to GUI, you can use mousepad to view the log dynamically.
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.tail -f foo.csv
tail -f yourlog.csv
Newly appended lines will continuously show.