Home      
  
   *Discussion Forum      
  
   Blog      
  
   www.quest.com      
  
Welcome Register | Login
Welcome Guest Search | Active Topics | Members

How to plot a time plot chart where the timeline data is coming from a log? Options
fshimaya
Posted: Friday, March 12, 2010 1:50:31 PM
Rank: Contributing Member
Groups: Member

Joined: 9/12/2009
Posts: 17
Location: N/A
I am creating a custom agent script that parses mpm data from the IBM HTTP WebServer logs. mpm is a module that gives you performance statistics related to thread usage (see http://publib.boulder.ibm.com/httpserv/ihsdiag/2.0/mod_mpmstats.html for more details). The purpose is to create a time-plot chart that will plot every "bucket" (i.e. rdy, bsy, rd, wr, ka, log, dns, and cls).

Here is a sample entry:

[Thu Aug 19 14:01:52 2004] [notice] mpmstats: rdy 712 bsy 312 rd 121 wr 173 ka 0 log 0 dns 0 cls 18
[Thu Aug 19 14:01:54 2004] [notice] mpmstats: rdy 718 bsy 306 rd 120 wr 169 ka 0 log 0 dns 0 cls 17
[Thu Aug 19 14:01:56 2004] [notice] mpmstats: rdy 729 bsy 295 rd 123 wr 135 ka 0 log 0 dns 0 cls 37
[Thu Aug 19 14:01:58 2004] [notice] mpmstats: rdy 759 bsy 265 rd 130 wr 67 ka 0 log 0 dns 0 cls 68

Notice the timestamp format. My question therefore is: What do I need to do with the timestamps as shown above in the script? I want these timestamps reflected in the time-plot charts as x-axis points. It must be more than just:

echo logTimeStamp.String=<...>

And what extra steps do I need to take in configuring the view to display the chart as I have described?

BrianW
Posted: Friday, March 12, 2010 2:08:00 PM

Rank: Guru Member
Groups: Member

Joined: 7/16/2008
Posts: 134
Location: New York
With a custom script agent, each observation output will be assigned a timestamp when the script executes.
You cannot supply a different timestamp with the observation with a script agent, although you can provide a timestamp with a DevKit agent.

With this in mind, it makes sense for your custom script agent to parse only the most recent line of the log file and output the metrics associated with that line. You can configure the agent collection interval to run as frequently as you want "buckets" for. Every two seconds if you must, but more sensibly a lower collection rate if you plan to run many such agents.

Regards,
Brian Wheeldon
fshimaya
Posted: Friday, March 12, 2010 2:11:26 PM
Rank: Contributing Member
Groups: Member

Joined: 9/12/2009
Posts: 17
Location: N/A
Thanks Brian. I was afraid of that =) Looks like I'll be trying out the DevKit.
crfpkr
Posted: Friday, August 13, 2010 5:14:09 AM
Rank: Newbie
Groups: Member

Joined: 8/10/2010
Posts: 3
Location: N/A
Hi Brian and fshimaya,

i am currently facing the same problem, i.e. showing the time read from the log file on the x-axis of the graph in FMS. Can you please give any hint in this direction, i.e how can i direct the timestamp read from a log file to show up on the x-axis of the graph instead of the time when the script executes (default). Should I define a property in my agent-topology.xml, if yes then with which parameters. And how can I select the read time in FMS as x-axis.

will appreciate any advice .

Thanks and Regards
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

SoClean Theme Created by Jaben Cargman (Tiny Gecko)
Yet Another Forum.net version 1.9.1.6 running under DotNetNuke.
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.

Disclaimer: The posts on this forum are provided “as is” with no warranties and confer no rights. The opinions expressed on this site are those of the individual and the individual alone, and do not necessarily represent those of Quest Software.

 

 News

 

Gartner Positions Quest
as a Leader
in Magic Quadrant for
Application Performance
Monitoring

Get your copy of the report 

 

 Latest Release

 

Foglight v5.5.5
Download Product

 

  

 Related Communities
 Related Quest Tools

 

Home | Discussion Forum | Blog | www.quest.com

@ 2008 Quest Software, Inc. All rights reserved. | Terms of Use | Trademarks | Privacy | Contact Us