The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 and shell scripting languages 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 07:13 AM
SOA and eXtreme Transaction Processing (XTP) iBot Complex Event Processing RSS News 0 03-02-2008 12:10 PM
Average Time sambond UNIX for Dummies Questions & Answers 1 01-16-2008 10:57 AM
WARNING: correctable error from pci0 (upa mid 0) during dvma read transaction. visveswaran IP Networking 1 09-28-2005 10:21 AM
How to find no of occurances Finding average time? redlotus72 UNIX Desktop for Dummies Questions & Answers 1 02-21-2005 03:22 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-02-2007
nhatch nhatch is offline
Registered User
  
 

Join Date: Aug 2002
Location: London, England
Posts: 85
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:
  #2 (permalink)  
Old 05-02-2007
ranj@chn ranj@chn is offline Forum Advisor  
Playing with Ubuntu Now!
  
 

Join Date: Oct 2005
Location: Chennai
Posts: 365
what output

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

Join Date: Aug 2002
Location: London, England
Posts: 85
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.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:54 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0