
To tail a file in Emacs ( start Emacs, hit M-x (Alt and x keys together), and type “tail-file”. Check out Krischik’s other projects here.
#USEFUL MAC LOG FILES CODE#
#USEFUL MAC LOG FILES WINDOWS#
For example, you need multiple cmdlet windows to monitor multiple files Basic functionality but some 3rd party extensions are available.No additional installation necessary for newer windows machines.You can also filter the log right at the command line using regular expressions: Use the following simple syntax to show the tail end of a log file in real-time. This approach doesn’t have any extra features but can be perfect for opening a quick commandlet window and keeping an eye on the status of a file. Powershell is one of the most overlooked windows apps for ops. Not ideal for watching multiple files simultaneously.Allows for easy switching between navigation and watching mode.However, he notes that if you need to watch multiple files simultaneously, the standard tail -f offers better output. See Tail for Win32 at the bottom of this post for a port to Windows.īrian Storti ( offers an alternative method to the standard tail -f: less +F, which causes similar behavior as tail -f but allows for easily switching between navigation and watching mode. Can be used with multiple –f filenames in the same window as shown in the script example above.

$ tail -f /var/log/syslog -f /var/log/myLog.log The de facto standard for linux systems is the ever-handy “tail” command. In fact, there may be too many.Ĭheck out some tools I found that make tailing a log file a walk in the park. Tailing multiple log files? Want to tail logs remotely from a web browser? This list covers a whole array of needs. NET developer, just getting started with tailing log files, or a seasoned developer who needs something quick and easy to set up and go, there are several options. It turns out there are a bunch of people on StackOverflow looking for ways to tail a log file, but there don’t appear to be many resources for all the different tips and tools to do this.
