<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Logs on Amit Agarwal Linux Blog</title>
    <link>/tags/logs/</link>
    <description>Recent content in Logs on Amit Agarwal Linux Blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Mon, 29 Jun 2015 01:15:56 +0000</lastBuildDate>
    
	<atom:link href="/tags/logs/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>Easily monitor and archive your system log reports.</title>
      <link>/2015/06/29/easily-monitor-archive-system-log-reports/</link>
      <pubDate>Mon, 29 Jun 2015 01:15:56 +0000</pubDate>
      
      <guid>/2015/06/29/easily-monitor-archive-system-log-reports/</guid>
      <description>&lt;p&gt;If you want to monitor your server logs and also like them to be emailed then just &lt;a href=&#34;http://blog.amit-agarwal.co.in/2010/06/02/logwatch-for-linux-systems/&#34; target=&#34;_blank&#34;&gt;Logwatch&lt;/a&gt; may not be sufficient. It sends you a mail but does not archive them, so head over to epylog&lt;/p&gt;
&lt;blockquote&gt;
&lt;dl&gt;
&lt;dt&gt;Name        : epylog&lt;/dt&gt;
&lt;dt&gt;Arch        : noarch&lt;/dt&gt;
&lt;dt&gt;Epoch       : 0&lt;/dt&gt;
&lt;dt&gt;Version     : 1.0.7&lt;/dt&gt;
&lt;dt&gt;Release     : 9.fc22&lt;/dt&gt;
&lt;dt&gt;Size        : 151 k&lt;/dt&gt;
&lt;dt&gt;Repo        : fedora&lt;/dt&gt;
&lt;dt&gt;Summary     : New logs analyzer and parser&lt;/dt&gt;
&lt;dt&gt;URL         : &lt;a href=&#34;https://fedorahosted.org/epylog/&#34;&gt;https://fedorahosted.org/epylog/&lt;/a&gt;&lt;/dt&gt;
&lt;dt&gt;License     : GPLv2+&lt;/dt&gt;
&lt;dt&gt;Description : Epylog is a new log notifier and parser which runs periodically out of&lt;/dt&gt;
&lt;dd&gt;cron, looks at your logs, processes the entries in order to present&lt;/dd&gt;
&lt;dd&gt;them in a more comprehensive format, and then provides you with the&lt;/dd&gt;
&lt;dd&gt;output. It is written specifically with large network clusters in mind&lt;/dd&gt;
&lt;dd&gt;where a lot of machines (around 50 and upwards) log to the same&lt;/dd&gt;
&lt;dd&gt;loghost using syslog or syslog-ng.&lt;/dd&gt;
&lt;/dl&gt;
&lt;/blockquote&gt;
&lt;p&gt;To install :&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>colorize your logs</title>
      <link>/2015/01/14/colorize-logs/</link>
      <pubDate>Wed, 14 Jan 2015 00:36:32 +0000</pubDate>
      
      <guid>/2015/01/14/colorize-logs/</guid>
      <description>&lt;p&gt;CCZE is a robust and modular log colorizer with plugins for apm, exim, fetchmail, httpd, postfix, procmail, squid, syslog, ulogd, vsftpd, xferlog, and more.&lt;/p&gt;
&lt;p&gt;For installation&lt;/p&gt;
&lt;pre class=&#34;brush:shell&#34;&gt;sudo yum install ccze&lt;/pre&gt;
&lt;p&gt;and to use it:&lt;/p&gt;
&lt;pre class=&#34;brush:shell&#34;&gt;tail -f -n 50 /var/log/firewalld | ccze
#or better yet
cat  /var/log/firewalld | ccze|more
&lt;/pre&gt;</description>
    </item>
    
    <item>
      <title>Quick tip on zipping logs in real time.</title>
      <link>/2010/10/13/quick-tip-zipping-logs-real-time/</link>
      <pubDate>Wed, 13 Oct 2010 17:57:53 +0000</pubDate>
      
      <guid>/2010/10/13/quick-tip-zipping-logs-real-time/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;Sometimes, some small things that we don’t actually think can be useful are such useful. I faced this couple of days back when I was working on something and the amount of logs getting generated and the files getting rotated was too fast. If I had to use this for sometime, I needed some script, application or something to make sure that the logs are zipped every few seconds. Finding an application for this would take time and what good is bash if we need to find applications for this. So, a simple bash command did the trick. Most of us would know this but applying it and using it at the right time, was what saved my life. Thanks to bash. Here is the command:&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>List of commands you use most often</title>
      <link>/2010/07/25/list-of-commands-you-use-most-often/</link>
      <pubDate>Sun, 25 Jul 2010 03:53:08 +0000</pubDate>
      
      <guid>/2010/07/25/list-of-commands-you-use-most-often/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;
&lt;p&gt;&lt;tt&gt;$ history | &amp;lt;a class=&amp;quot;zem_slink&amp;quot; title=&amp;quot;AWK&amp;quot; rel=&amp;quot;homepage&amp;quot; href=&amp;quot;http://cm.bell-labs.com/cm/cs/awkbook/index.html&amp;quot;&amp;gt;awk&lt;/a&gt; &#39;{a[$2]++}END{for(i in a){print a[i] &amp;quot; &amp;quot; i}}&#39; | sort -rn | head &amp;gt; /tmp/cmds | &amp;lt;a class=&amp;quot;zem_slink&amp;quot; title=&amp;quot;Gnuplot&amp;quot; rel=&amp;quot;homepage&amp;quot; href=&amp;quot;http://www.gnuplot.info/&amp;quot;&amp;gt;gnuplot&lt;/a&gt; -persist &amp;lt;(echo &#39;plot &amp;quot;/tmp/cmds&amp;quot; using 1:xticlabels(2) with boxes&#39;)&lt;/tt&gt; Plot your most used commands with gnuplot.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&amp;lt;a href=&amp;quot;http://www.commandlinefu.com/commands/view/5845/list-of-commands-you-use-most-often&amp;quot;&amp;gt;View this command to comment, vote or add to favourites&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&amp;lt;a href=&amp;quot;http://feeds2.feedburner.com/commands/by/sthrs&amp;quot;&amp;gt;View all commands by &lt;/a&gt;&lt;strong&gt;&amp;lt;a href=&amp;quot;http://feeds2.feedburner.com/commands/by/sthrs&amp;quot;&amp;gt;sthrs&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&amp;lt;a href=&amp;quot;http://www.commandlinefu.com&amp;quot;&amp;gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;by David Winterbottom (&amp;lt;a href=&amp;quot;http://codeinthehole.com&amp;quot;&amp;gt;codeinthehole.com&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;&amp;lt;a href=&amp;quot;http://feedads.g.doubleclick.net/~a/qns5iNy&amp;ndash;6jXLRCLFY_jGnkB68s/0/da&amp;quot;&amp;gt;&lt;/a&gt;&lt;br&gt;
&amp;lt;a href=&amp;quot;http://feedads.g.doubleclick.net/~a/qns5iNy&amp;ndash;6jXLRCLFY_jGnkB68s/1/da&amp;quot;&amp;gt;&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>concatenate compressed and uncompressed logs</title>
      <link>/2010/07/15/concatenate-compressed-and-uncompressed-logs/</link>
      <pubDate>Thu, 15 Jul 2010 02:10:28 +0000</pubDate>
      
      <guid>/2010/07/15/concatenate-compressed-and-uncompressed-logs/</guid>
      <description>&lt;!--[ad#ad-2]--&gt;
&lt;h1 id=&#34;span-stylefont-size-x-largea-hrefhttpfeedproxygooglecomrcommand-line-fu3iwfuyltygjmconcatenate-compressed-and-uncompressed-logsconcatenate-compressed-and-uncompressed-logsaspan&#34;&gt;&lt;strong&gt;&amp;lt;span style=&amp;quot;font-size: x-large;&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;http://feedproxy.google.com/~r/Command-line-fu/~3/iwFUyltYgjM/concatenate-compressed-and-uncompressed-logs&amp;quot;&amp;gt;concatenate compressed and uncompressed logs&lt;/a&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/h1&gt;
&lt;p&gt;&lt;tt&gt;$ find /var/log/apache2 -name &#39;access.log&lt;em&gt;gz&#39; -exec &amp;lt;a class=&amp;quot;zem_slink freebase/guid/9202a8c04000641f800000000001abd9&amp;quot; title=&amp;quot;Gzip&amp;quot; rel=&amp;quot;homepage&amp;quot; href=&amp;quot;http://www.gzip.org/&amp;quot;&amp;gt;zcat&lt;/a&gt; {} ; -or -name &#39;access.log&lt;/em&gt;&#39; -exec cat {} ;&lt;/tt&gt; This command allows you to stream your log files, including gziped files, into one stream which can be piped to &amp;lt;a class=&amp;quot;zem_slink freebase/guid/9202a8c04000641f800000000000584b&amp;quot; title=&amp;quot;AWK&amp;quot; rel=&amp;quot;homepage&amp;quot; href=&amp;quot;http://cm.bell-labs.com/cm/cs/awkbook/index.html&amp;quot;&amp;gt;awk&lt;/a&gt; or some other command for analysis.&lt;/p&gt;
&lt;p&gt;Note: if your version of &amp;amp;#8217;find&amp;amp;#8217; supports it, use:&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>concatenate compressed and uncompressed logs</title>
      <link>/2010/06/21/concatenate-compressed-uncompressed-logs/</link>
      <pubDate>Mon, 21 Jun 2010 12:58:46 +0000</pubDate>
      
      <guid>/2010/06/21/concatenate-compressed-uncompressed-logs/</guid>
      <description>&lt;h1 id=&#34;span-stylefont-size-x-largea-hrefhttpfeedproxygooglecomrcommand-line-fu3iwfuyltygjmconcatenate-compressed-and-uncompressed-logsconcatenate-compressed-and-uncompressed-logsaspan&#34;&gt;&lt;strong&gt;&amp;lt;span style=&amp;quot;font-size: x-large;&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;http://feedproxy.google.com/~r/Command-line-fu/~3/iwFUyltYgjM/concatenate-compressed-and-uncompressed-logs&amp;quot;&amp;gt;concatenate compressed and uncompressed logs&lt;/a&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/h1&gt;
&lt;p&gt;&lt;tt&gt;$ find /var/log/apache2 -name &#39;access.log&lt;em&gt;gz&#39; -exec &amp;lt;a class=&amp;quot;zem_slink freebase/en/gzip&amp;quot; title=&amp;quot;Gzip&amp;quot; rel=&amp;quot;homepage&amp;quot; href=&amp;quot;http://www.gzip.org/&amp;quot;&amp;gt;zcat&lt;/a&gt; {} ; -or -name &#39;access.log&lt;/em&gt;&#39; -exec cat {} ;&lt;/tt&gt; This command allows you to stream your log files, including gziped files, into one stream which can be piped to &amp;lt;a class=&amp;quot;zem_slink freebase/en/awk&amp;quot; title=&amp;quot;AWK&amp;quot; rel=&amp;quot;homepage&amp;quot; href=&amp;quot;http://cm.bell-labs.com/cm/cs/awkbook/index.html&amp;quot;&amp;gt;awk&lt;/a&gt; or some other command for analysis.&lt;/p&gt;
&lt;p&gt;Note: if your version of &amp;amp;#8217;find&amp;amp;#8217; supports it, use:&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Logwatch for Linux Systems.</title>
      <link>/2010/06/02/logwatch-for-linux-systems/</link>
      <pubDate>Wed, 02 Jun 2010 01:53:36 +0000</pubDate>
      
      <guid>/2010/06/02/logwatch-for-linux-systems/</guid>
      <description>&lt;p&gt;On my personal &amp;lt;a class=&amp;quot;zem_slink freebase/en/client&amp;quot; title=&amp;quot;Client (computing)&amp;quot; rel=&amp;quot;wikipedia&amp;quot; href=&amp;quot;http://en.wikipedia.org/wiki/Client_%28computing%29&amp;quot;&amp;gt;desktop&lt;/a&gt; at home, I like to see the &amp;lt;a class=&amp;quot;zem_slink freebase/en/statistics&amp;quot; title=&amp;quot;Statistics&amp;quot; rel=&amp;quot;wikipedia&amp;quot; href=&amp;quot;http://en.wikipedia.org/wiki/Statistics&amp;quot;&amp;gt;statistics&lt;/a&gt; at least once a day, for what was installed, what was run with &amp;lt;a class=&amp;quot;zem_slink freebase/en/sudo&amp;quot; title=&amp;quot;Sudo&amp;quot; rel=&amp;quot;homepage&amp;quot; href=&amp;quot;http://www.sudo.ws/&amp;quot;&amp;gt;sudo&lt;/a&gt; and other such details like &amp;lt;a class=&amp;quot;zem_slink freebase/en/kernel&amp;quot; title=&amp;quot;Kernel (computing)&amp;quot; rel=&amp;quot;wikipedia&amp;quot; href=&amp;quot;http://en.wikipedia.org/wiki/Kernel_%28computing%29&amp;quot;&amp;gt;kernel&lt;/a&gt; errors.&lt;/p&gt;
&lt;p&gt;Running this monotonously every day is quite boring, so comes to rescue is logwatch. I have &amp;lt;a class=&amp;quot;zem_slink freebase/en/fedora&amp;quot; title=&amp;quot;Fedora&amp;quot; rel=&amp;quot;homepage&amp;quot; href=&amp;quot;http://fedoraproject.org/&amp;quot;&amp;gt;Fedora&lt;/a&gt; &amp;lt;a class=&amp;quot;zem_slink freebase/en/installation&amp;quot; title=&amp;quot;Installation (computer programs)&amp;quot; rel=&amp;quot;wikipedia&amp;quot; href=&amp;quot;http://en.wikipedia.org/wiki/Installation_%28computer_programs%29&amp;quot;&amp;gt;installation&lt;/a&gt; so I will talk about the location with respect to that so for your distribution it might be a little different.&lt;/p&gt;</description>
    </item>
    
  </channel>
</rss>
