Number of log events per day and second

Ever want to know how many log events per day and per second (in a day) you are generating??? Derived from this SK.

You can run this on your MLM MDS from the root mdsenv and NOT inside a domain context.


. $CPDIR/tmp/
# Print log rate data on all Domains
for DOMAIN in $(ls -1 $MDSDIR/customers)
mdsenv “$DOMAIN” > /bin/null
mcd log > /bin/null
ls -al *.logptr | awk ‘{split($9,a,”_”);print a[1],$5 }’ | sort | awk -v mds=$DOMAIN -F ” ” ‘{s[$1]+=$2} END {for (i in s) printf “%s,%s,%d,%f\n”, mds,i,s[i]/4,s[i]/4/86400} ‘ | sort

exit 0


Try this environment too

. $MDS_CPDIR/tmp/
. $MDS_SYSTEM/shared/

Post a comment or leave a trackback: Trackback URL.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Helen's Loom

"Peculiar travel suggestions are dancing lessons from God." - Kurt Vonnegut

Life Stories from Dreez

These are stories from my travels. Generally I like to write stories about local people that I meet and also brag about living the retirement dream with my #1 wife Gaby. She is also my only wife.

%d bloggers like this: