<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
> <channel><title>gHacks Technology News &#124; Latest Tech News, Software And Tutorials &#187; tail</title> <atom:link href="http://www.ghacks.net/tag/tail/feed/" rel="self" type="application/rss+xml" /><link>http://www.ghacks.net</link> <description>A technology news blog covering software, mobile phones, gadgets, security, the Internet and other relevant areas.</description> <lastBuildDate>Sat, 11 Feb 2012 09:52:46 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/> <item><title>MTail, Auto-Updating Text Viewer With Notifications</title><link>http://www.ghacks.net/2011/05/18/mtail-auto-updating-text-viewer-with-notifications/</link> <comments>http://www.ghacks.net/2011/05/18/mtail-auto-updating-text-viewer-with-notifications/#comments</comments> <pubDate>Wed, 18 May 2011 17:30:12 +0000</pubDate> <dc:creator>Martin Brinkmann</dc:creator> <category><![CDATA[Software]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[log files]]></category> <category><![CDATA[mtail]]></category> <category><![CDATA[portable software]]></category> <category><![CDATA[tail]]></category> <category><![CDATA[windows software]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=45283</guid> <description><![CDATA[MTail replicates the Unix command Tail. Its main purpose is to display and auto-update text documents like log files. That, combined with options to configure alarms and notifications makes it a strong tool for system administrators and webmasters who need to monitor specific log files on a computer system. While it is ideal for log [...]]]></description> <content:encoded><![CDATA[<p>MTail replicates the Unix command Tail. Its main purpose is to display and auto-update text documents like log files. That, combined with options to configure alarms and notifications makes it a strong tool for system administrators and webmasters who need to monitor specific log files on a computer system. While it is ideal for log files, it is capable of displaying, updating and monitoring all plain text files.</p><p>MTail is a portable program for 32-bit and 64-bit editions of the Windows operating system. You can run it from any location once you have unpacked the main executable.</p><p><img
src="http://www.ghacks.net/wp-content/uploads/2011/05/mtail.png" alt="mtail" title="mtail" width="600" height="403" class="alignnone size-full wp-image-45284" /></p><p>You can use the file browser to load a text document from the system, or specify file names with wildcards, which is handy if the file names change regularly. This is often the case if a maximum file size for a log has been configured on the system. The last logical file name is always selected and the program checks the directory for newer files that match the string on every update.</p><p>MTail monitors the selected file or path constantly right from the start. You can press the Stop button to stop the monitoring, and start again to continue it.</p><p>The filter option in the main interface can be used to display only lines containing the selected string. A click on Filter inverts the selection, so that only lines that do not contain the string are shown in the program window.</p><p>Alerts can be activated here as well. There are two types of alerts. One if the monitored text file is updated, and one if a user specified text is found in the document. The notifications are configured in the program settings. Available for selection are sound and email notifications. SMTP settings need to be entered under the General tab in the configuration if email notifications are selected.</p><p><img
src="http://www.ghacks.net/wp-content/uploads/2011/05/alerts.png" alt="alerts" title="alerts" width="455" height="513" class="alignnone size-full wp-image-45285" /></p><p>There is also an alerts window that displays all lines of text that have triggered an alert. The window is updated regularly as well.</p><p>Alerts and filters can be entered as plain text, or as regular expressions.</p><p>Additional program options are displayed in the main menu. Here it is possible to change the read buffer, offsets, word wrap IP look-ups which is handy for server log files. About the read buffer. It is set to 50 which means that you will not see all the lines of larger files. You can easily increase the number to display additional lines of the document.</p><p>The program can be used from the command line as well, for example to process a log in a batch file.</p><p>MTail is an excellent text filtering and monitoring application. It offers a rich feature set coupled with Unicode support and the ability to load text files of nearly any size, thanks to its intelligent read buffering and offset configuration options. (I tried various file sizes up to 1.2 Gigabytes and the files displayed almost instantly every time).</p><p>System administrators, webmasters, tech support and tech savvy users should have the portable program in their tools collection.</p><p>I suggest you consult the comprehensive <a
href="http://ophilipp.free.fr/soft/mTAIL.pdf">MTail</a> help document if you run into troubles or difficulties while using the software. You can download <a
href="http://ophilipp.free.fr/op_tail.htm">MTail</a> from the developer website. The program is compatible with 32-bit and 64-bit editions of the Windows operating system starting with Windows 2000 all the way up to Windows 7. (<a
href="http://www.essential-freebies.de/board/viewtopic.php?t=16245&#038;p=117997#p117997">via</a>)</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2011/05/18/mtail-auto-updating-text-viewer-with-notifications/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Follow multiple log files with multitail</title><link>http://www.ghacks.net/2009/06/04/follow-multiple-log-files-with-multitail/</link> <comments>http://www.ghacks.net/2009/06/04/follow-multiple-log-files-with-multitail/#comments</comments> <pubDate>Thu, 04 Jun 2009 19:09:25 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Advice]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Security]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[log files]]></category> <category><![CDATA[multitail]]></category> <category><![CDATA[tail]]></category> <guid
isPermaLink="false">http://www.ghacks.net/2009/06/04/follow-multiple-log-files-with-multitail/</guid> <description><![CDATA[Any Linux administrator knows that watching log files is key to troubleshooting problems on a Linux system. In some troubleshooting instances it is necessary to follow more than one log file. For this you will wind up with two terminal windows open which can become a mess (when you already have a number of windows [...]]]></description> <content:encoded><![CDATA[<p>Any Linux administrator knows that watching log files is key to troubleshooting problems on a Linux system. In some troubleshooting instances it is necessary to follow more than one log file. For this you will wind up with two terminal windows open which can become a mess (when you already have a number of windows open.) With the multitail application it is possible to follow more than one log file in the same window. It&#8217;s a wonderful tool for anyone who has to troubleshoot a Linux machine.</p><p>Multitail does exactly as it sounds &#8211; it allows more than one instance of the tail command in a single window. Given that we should probably take a look at the tail command first.</p><p><span
id="more-13306"></span><strong>Tail</strong></p><p>What tail does is print the output of a log file in real time. With this you can open up, say, <strong>/var/log/messages</strong> with tail and see the last ten lines of that file as they are printed.  This comes in very handy when you need to see the errors precisely as they happen.</p><p>To run the tail command on a log file (we&#8217;ll stick with our example above) you would issue the command:</p><p><em>tail -f /var/log/messages</em></p><p>You would see printed the last ten kernel buffer messages as they are added. This is very helfpul when you are plugging in a USB device and you want to find out what address the device is attached to.</p><p>But what if you want to view, say, <strong>/var/log/mail.err </strong>and <strong>/var/log/mail.warn</strong> together? Sure you could open up two terminals and issue the tail commands for each log file, but why do that when you can have them in the same window?</p><p><strong>Getting and installing multitail</strong></p><p>The easiest way to install multitail is to issue the command (since you&#8217;ll be working in the command line anyway):</p><p><em>sudo apt-get install multitail</em></p><p>or</p><p><em>yum install multitail</em></p><p>Once the application is installed you are ready to go (there is no configuration necessary).</p><p><strong>Running multitail</strong></p><p>The structure of the multitail command is:</p><p>multitail -i FIRSTLOG -i SECONDLOG</p><p>Where FIRSTLOG and SECONDLOG are the log files you want to follow. Sticking with the example above let&#8217;s follow mail.err and mail.info. We do this with the command:</p><p><em>sudo multitail -i /var/log/mail.err -i /var/log/mail.info</em></p><div
id="attachment_13302" class="wp-caption alignleft" style="width: 310px"><a
href="http://www.ghacks.net/wp-content/uploads/2009/06/multitai.png"><img
class="size-medium wp-image-13302" src="http://www.ghacks.net/wp-content/uploads/2009/06/multitai-500x326.png" alt="Figure 1" width="300" height="196" /></a><p
class="wp-caption-text">Figure 1</p></div><p>The above command will have multitail following both log files horizontally (as shown in Figure 1). At first it can be a bit disconcerting to see and follow. What you are seeing is the <strong>/var/log/mail.err</strong> file being tail&#8217;d on top and the <strong>/var/log/mail.info</strong> file being tail&#8217;d on bottom. The easiest way to discern one from the other is at the bottom of each tail is the white bar showing what file is being tail&#8217;d.</p><p>If you do not like the horizontal layout you can change that to a vertical layout with the <em>s</em> switch like so:</p><p><em>sudo multitail -s 2 -i /var/log/mail.err -i /var/log/mail.info</em></p><div
id="attachment_13305" class="wp-caption alignright" style="width: 310px"><a
href="http://www.ghacks.net/wp-content/uploads/2009/06/multitail_v.png"><img
class="size-medium wp-image-13305" src="http://www.ghacks.net/wp-content/uploads/2009/06/multitail_v-500x326.png" alt="Figure 2" width="300" height="196" /></a><p
class="wp-caption-text">Figure 2</p></div><p>When you run this version of the command the tail&#8217;s are side by side with a wide vertical bar between them (as you can see in Figure 2).</p><p><strong>Merging logs</strong></p><p>You can also use multitail to merge multiple logs into one log. This can help you when you know you need to follow the output of more than one log file but you don&#8217;t need them separated. To do this you use the <em>mergeall</em> option like so:</p><p><em>sudo multitail &#8211;mergeall -i /var/log/mail.err -i /var/log/mail.info</em></p><p><strong>Final thoughts</strong></p><p>Multitail is one of those tools that once you get used to having it in your toolkit you will pull it out again and again.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/06/04/follow-multiple-log-files-with-multitail/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Learning Linux: Log Files</title><link>http://www.ghacks.net/2009/02/16/learning-linux-log-files/</link> <comments>http://www.ghacks.net/2009/02/16/learning-linux-log-files/#comments</comments> <pubDate>Mon, 16 Feb 2009 14:36:09 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Advice]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[/var/log]]></category> <category><![CDATA[administration]]></category> <category><![CDATA[log files]]></category> <category><![CDATA[messages]]></category> <category><![CDATA[Security]]></category> <category><![CDATA[tail]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=10586</guid> <description><![CDATA[If you are serious about learning Linux then one aspect you will want to familiarize yourself with is log files. This concept will help you to understand why when you go to a mailing list with a problem and, when someone asks you the contents of a particular log file, you are able to offer [...]]]></description> <content:encoded><![CDATA[<p>If you are serious about learning Linux then one aspect you will want to familiarize yourself with is log files. This concept will help you to understand why when you go to a mailing list with a problem and, when someone asks you the contents of a particular log file, you are able to offer enough information to help solve your problem. Log files are very good for helping you deduce what is going wrong with a system. There are, however, a lot of log files to wade through. That&#8217;s where I come in. In this article I am going to show you the first places to look when you have problems with a Linux system. I won&#8217;t cover all of the log files (at least yet), but I will get you started on what will hopefully become a long history of too much information.</p><p><span
id="more-10586"></span><strong>dmesg</strong></p><p>When I have a problem (or when I am attaching a usb device) one of the first places I go is the <em>dmesg</em> command. The <em>dmesg</em> command prints out the kernel keyring buffer. The information you will get will be all of the information you do not see when your system is booting. This is a great place to get information (low level) on your hardware. On one of my laptops, I run <em>dmesg</em> and near the top I see:</p><p><code>Phoenix BIOS detected: BIOS may corrupt low RAM, working it around.<br
/> last_pfn = 0x7f6d0 max_arch_pfn = 0x100000<br
/> x86 PAT enabled: cpu 0, old 0x7040600070406, new 0x7010600070106<br
/> kernel direct mapping tables up to 38000000 @ 10000-15000<br
/> Using x86 segment limits to approximate NX protection<br
/> RAMDISK: 37c6a000 - 37fef4a2<br
/> </code></p><p>From that I can tell I have a Phoenix bios. Pretty obvious. A little later I see:</p><p><code>Security Framework initialized<br
/> SELinux:  Initializing.<br
/> SELinux:  Starting in permissive mode</code></p><p>Now I know Security Enhanced Linux is starting, in permissive mode, at bootup. And even further on down the line I see:</p><p><code>CPU1: Intel(R) Pentium(R) Dual  CPU  T2390  @ 1.86GHz stepping 0d<br
/> checking TSC synchronization [CPU#0 -&gt; CPU#1]: passed.<br
/> Brought up 2 CPUs<br
/> Total of 2 processors activated (7447.76 BogoMIPS)</code></p><p>The above shows me information about my CPU. Good to know.</p><p>The most important information you will probably get from <em>dmesg</em> is the information regarding attached USB devices. When you plug in a USB device you will need to know what special device this is attached to so you can mount it. This will occur at the bottom of the <em>dmesg</em> command output.</p><p>The output of <em>dmesg</em> is quite long and will scroll by very quickly. When I run this command I always pipe it through the <em>less</em> command like so:</p><p><em>dmesg | less</em></p><p>This way I can view the output one page at a time.</p><p><strong>/var/log</strong></p><p>This special directory is the Mac Daddy of information gathering. Fire up a terminal window and issue the command <em>ls /var/log/</em> and see what it contains. You see, included in this listing, such log files and log directories as:</p><ul><li>boot.log &#8211; boot information</li><li>cron &#8211; cron logs</li><li>cups &#8211; directory of all printing logs</li><li>httpd &#8211; Apache logs</li><li>mail &#8211; Mail server logs</li><li>maillog &#8211; The mail log</li><li>messages &#8211; Post-boot kernel information</li><li>secure &#8211; Security log</li><li>Xorg.0.log &#8211; X Server log</li></ul><p>You can see the listing of log files in the <strong>/var/log</strong> directory, but in order to actually read the log files you have to be the root user (or use sudo).</p><p><strong>Viewing with tail</strong></p><p>One of the handiest methods of viewing log files is using the <em>tail</em> command. What tail does is follow the running output of a log file. For instance if I want to follow my <strong>/var/log/secure</strong> log to watch for security issues I would enter the command <em>tail -f /var/log/secure. </em>The <em>f</em> switch tells tail to follow. If  you don&#8217;t add the <em>f</em> switch tail will just list the output all at once (as if you just issued <em>less /var/log/secure</em>.)</p><p><strong>Final Thougths</strong></p><p>There is so much information to be gained from reading log files. The Linux operating system makes reading log files easy, once you know which log file does what. Take a poke around <strong>/var/log</strong> to find out exactly what you have and where you need to look for the problem you are having.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/02/16/learning-linux-log-files/feed/</wfw:commentRss> <slash:comments>8</slash:comments> </item> </channel> </rss>
