Re: Log monitoring

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



centos-bounces@xxxxxxxxxx wrote:
> Bowie Bailey wrote:
>> On 7/6/2011 5:37 AM, Fajar Priyanto wrote:
>>> Hi all,
>>> Currently I do 'tail -f /var/log/messages | grep something' to
>>> monitor/tune in my iptables rules.
>>> 
>>> Based on your experience, is there any tools do that better like:
>>> - color
>>> - grepping multiple keywords
>>> - some statistic
>> 
>> I don't know about any tools for this, but I did want to point out
>> that grep can handle multiple keywords.
>> 
>> $ tail -f /var/log/messages | grep -e keyword1 -e keyword2
> -e keyword3
> <snip>
> Haven't used them, but cactus? splunk?
And I think you want -F (not -f) so your tail will follow the file
/var/log/messages across logrotates.


Insert spiffy .sig here:
Life is complex: it has both real and imaginary parts.
Life is not measured by the number of breaths we take, but by the
moments that take our breath away. 


//me
*******************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom
they are addressed. If you have received this email in error please
notify the system manager. This footnote also confirms that this
email message has been swept for the presence of computer viruses.
www.Hubbell.com - Hubbell Incorporated**

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux