SUMMARY: Cluster 3.1U4 event-logs



<original posting below>

Hello,

and thanks to Christopher Manly [cam2@xxxxxxxxxxx] for his quick and reliable
answer! Here's his response:

===================/snip/=======================
These logs are primarily generated by GDS agents. Somewhere along the
line, Sun changed the default logging on the GDS from silent to very
verbose. As far as I can tell, these logs can only be read by a special
tool that Sun support only has access to. So I decided to squelch
them. The way to do that (aside from /dev/null'ing the logfiles) is to
set the Log_level extension property on GDS resources to 'NONE'.

Here's a script I wrote to do it across the cluster:

#!/bin/ksh

for group in `/usr/cluster/bin/scha_cluster_get -O ALL_RESOURCEGROUPS`
do
for resource in `/usr/cluster/bin/scha_resourcegroup_get -O
RESOURCE_LIST -G $group`
do
isgds=`/usr/cluster/bin/scha_resource_get -O TYPE -R
$resource | /bin/cut -d : -f 1`

if [ $isgds = 'SUNW.gds' ]
then

Loglevel_info=`/usr/cluster/bin/scha_resource_get -O EXTENSION -R
$resource -G $group Log_level`
loglevel=`echo $Loglevel_info | /bin/awk '{print
$2}'`
#echo $resource $loglevel
if [ $loglevel != 'NONE' ]
then
/usr/cluster/bin/scrgadm -c -j $resource
-x Log_level=NONE
echo "$resource Fixed"
fi
fi
done
done


If you don't want to do that, play with this cron job in root's cron to
adjust the rate of rollover:

20 4 * * 0 /usr/cluster/lib/sc/newcleventlog /var/cluster/logs/eventlog

--
Christopher Manly
Unix Systems Administrator
CIT Systems & Operations
706 Rhodes Hall
Ithaca, NY 14853
607-255-0443
cam2@xxxxxxxxxxx
===============/snap/=================================

I think I will reconfigure the log-level, as Christopher suggested, to get rid
of these logs.

Thanks to Christopher and to the list,

have a nice hackin',

Harald

Original posting:

Hello gurus,

can anyone out there shed some light on the event logs which are written
in /var/cluster/logs? The problem is that these logs are growing quite
fast, and are fillin' up my /var-partition.
I'd like to make the logging less verbose, and have the cluster g'zip
this logs automatically after rotating to save space. What is the
recommended way to do this? (Of course I can use "find" to do the job,
but I'd like to do it the "right" way, without introducing custom-made
scripts)
And, last not least, how can I read this logs? They seem to be
binary-encoded, so...
_______________________________________________
sunmanagers mailing list
sunmanagers@xxxxxxxxxxxxxxx
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



Relevant Pages

  • Weekly crash on SBS2003 German (Possible Duplicate Post)
    ... Original posting seems to have got lost, am re-posting, but if original turns ... and continues to do so after SP1. ... see two new items in the event logs which have not been ... Die Konfigurationsinformationen der Leistungsbibliothek ...
    (microsoft.public.windows.server.sbs)
  • Re: Cluster service, network name takes long time to start/fail
    ... it dosent fail before starting, and the log dosent say anything after we ... enabled kerberos for the resource network name, ... > Check the event logs to see if the resource is failing before starting. ...
    (microsoft.public.windows.server.general)
  • Re: Performance Monitoring Software?
    ... > monitors system performance and resource utilization and generates logs (and ... You'll need some scripts and something like gnuplot to make graphs out ...
    (comp.os.linux.misc)
  • Re: How to generate standard logs with IIS 5
    ... cs-uri-stem is the resource accessed. ... on your file system that is named lacm.php?limite=30. ... I want to get some statistics with Awstats software and it ask me for standard logs. ... I've configured IIS but when I see the logs I find something like this:> ...
    (microsoft.public.inetserver.iis)
  • Unable to view tasks across multiple projects
    ... plans both involving resource X (assumes tasks are ... When resouce X logs into Project Web Access ...
    (microsoft.public.project.pro_and_server)