The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Average completion time calculation? Seawall UNIX for Dummies Questions & Answers 5 05-20-2008 03:13 AM
SOA and eXtreme Transaction Processing (XTP) iBot Complex Event Processing RSS News 0 03-02-2008 08:10 AM
Average Time sambond UNIX for Dummies Questions & Answers 1 01-16-2008 06:57 AM
WARNING: correctable error from pci0 (upa mid 0) during dvma read transaction. visveswaran IP Networking 1 09-28-2005 06:21 AM
How to find no of occurances Finding average time? redlotus72 UNIX Desktop for Dummies Questions & Answers 1 02-21-2005 11:22 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-02-2007
Registered User
 

Join Date: Aug 2002
Location: London, England
Posts: 84
Stumble this Post!
average transaction time

Hi all,

I have large daily log file(s) that hold the times for requests and responses on different system requests. What I want to do is work out average transaction times for the day (one log = one day).

The problem I'm having is figuring out how to skip rows, i've sorted the output by uniq trans id and then worked out the time taken but then skipping to the next uniq trans id (two lines down) is proving difficult, any sugestions?

The below is the example of the extracted lines.

Date/TIME, Trans, Link name, uniq trans id, trans status

20070422095251 REQUEST - LINK_2:<437288668/1>:
20070422095251 RESPONSE - LINK_2:<437288668/1>:0:
20070422095251 REQUEST - LINK_2:<437288672/1>:
20070422095251 RESPONSE - LINK_2:<437288672/1>:0:
20070422095251 REQUEST - LINK_2:<437288699/1>:
20070422095252 RESPONSE - LINK_2:<437288699/1>:0:
20070422095252 REQUEST - LINK_2:<437288698/1>:
20070422095252 RESPONSE - LINK_2:<437288698/1>:0:
20070422095252 REQUEST - LINK_2:<437288730/1>:
20070422095253 RESPONSE - LINK_2:<437288730/1>:0:
20070422095253 REQUEST - LINK_2:<437288750/1>:
20070422095253 RESPONSE - LINK_2:<437288750/1>:0:
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 05-02-2007
Playing with Ubuntu Now!
 

Join Date: Oct 2005
Location: Chennai
Posts: 364
Stumble this Post!
what output

Could you tell us what output do you want from the listing given?
Reply With Quote
  #3 (permalink)  
Old 05-02-2007
Registered User
 

Join Date: Aug 2002
Location: London, England
Posts: 84
Stumble this Post!
Hi,

All I plan is to display is the number of transactions per second or seconds per tranasction (which ever I decide).

From the log I cut out the time and trans id field and that will produce a file sorted by transaction id number.

I then want to go through and work out the time taken for each tranasaction, the problem is I don't know how to transend the file and work out the time for each transaction. Should I do a while read statement? I'm not sure.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 08:42 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0