ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Automated monitoring of syslog

Post new topic  Reply to topic
 Automated monitoring of syslog « View previous topic :: View next topic » 
Author Message
ghoshly
PostPosted: Wed Dec 11, 2013 6:10 pm    Post subject: Automated monitoring of syslog Reply with quote

Partisan

Joined: 10 Jan 2008
Posts: 333

Hello,

Is there any automated process already available through which we can monitor syslog automatically, specially for MQ and Broker errors?

I am thinking of a shell script which should be run periodically and perform a string based search in the syslog and based on anomaly found, it should send email alert to system administrators. In this case I need to come up with a definite list of strings to search for. I can not search for BIP* because then it would include all deployment, flow start stop etc. Other than experience, is there any reference where I can get similar list?

Would you please suggest any better or alternate approach??

WMB 8.0.0.2, AIX 7:1
Back to top
View user's profile Send private message
smdavies99
PostPosted: Wed Dec 11, 2013 11:27 pm    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

the unix utilities

grep and awk

will be your friend here. Especially awk. Once you have greppped a BIP event then you can fire it into awk where you can use those wonderful things called 'regular expressions' to filter out the 'I' events and others that you want to ignore.

enjoy

{Unix user since 1982 (Dec Ultrix)}
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
gs
PostPosted: Thu Dec 12, 2013 1:36 am    Post subject: Reply with quote

Master

Joined: 31 May 2007
Posts: 254
Location: Sweden

I think a better solution would be to use syslog filters to redirect broker log entries into its own log file.

An old colleague did a write-up on my configuration here: http://protocol7.com/archives/2009/02/10/filtering-websphere-message-broker-logs-on-linux/
Back to top
View user's profile Send private message
gs
PostPosted: Thu Dec 12, 2013 1:41 am    Post subject: Reply with quote

Master

Joined: 31 May 2007
Posts: 254
Location: Sweden

This configuration was used to put everything in its own log file but you could adjust the filters (which are regexp based btw) to your liking.

You can also use multiple log destinations, file & smtp at the same time.
Back to top
View user's profile Send private message
ghoshly
PostPosted: Thu Dec 12, 2013 11:02 am    Post subject: thanks Reply with quote

Partisan

Joined: 10 Jan 2008
Posts: 333

Thanks for your kind response.

Based on the above response, I am getting the conclusion, that there is no such list available to detect issues in syslog. We need to prepare such using regex.
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Thu Dec 12, 2013 1:37 pm    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

You're probably not the first one in your company wanting to be notified of a value in a syslog. There is likely an enterprise solution already in place. Ask them to look for the entries you care about.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Automated monitoring of syslog
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.