hi Folks,
i want to run few urls against my application server for testing purpose.Basically these are urls from access logs and we want to test if these urls causing application slowness.
Is there any way i can grab the hits from access log and again invoke those urls using any kind of program or script.
Below is snippet from access log:
Select all Open in new window
155.180.105.36 - - [09/Jul/2011:11:46:50 -0400] "GET /cm/Satellite?pagename=CYQ
/Href&urln
ame=cyqorg
an/am/wate
ress/about
us HTTP/1.1" 200 29811
155.180.105.36 - - [09/Jul/2011:11:46:52 -0400] "GET /cm/Satellite?pagename=CYQ
/Href&urln
ame=cyqorg
an/am/wate
ress/about
us HTTP/1.1" 200 29732
155.180.105.36 - - [09/Jul/2011:11:46:52 -0400] "GET /cm/Satellite?pagename=CYQ
/Href&urln
ame=cyqorg
an/am/wate
ress/about
us HTTP/1.1" 200 29732
155.180.105.36 - - [09/Jul/2011:11:46:52 -0400] "GET /cm/Satellite?pagename=CYQ
/Href&urln
ame=cyqorg
an/am/wate
ress/about
us HTTP/1.1" 200 29732
155.180.105.36 - - [09/Jul/2011:11:46:52 -0400] "GET /cm/Satellite?pagename=CYQ
/Href&urln
ame=cyqorg
an/am/wate
ress/about
us HTTP/1.1" 200 29732
Select all Open in new window
I was thinking to do awk and grep the url but it missing the hostname.
so, is there any way to append hostname and wget before the url and then put it in a shell script and run it .
something like
Select all Open in new window
wget hostname /cm/Satellite?pagename=CYQ
/Href&urln
ame=cyqorg
an/am/wate
ress/about
us HTTP/1.1" 200 29732
wget hostname /cm/Satellite?pagename=CYQ
/Href&urln
ame=cyqorg
an/am/wate
ress/about
us HTTP/1.1" 200 29732
wget hostname /cm/Satellite?pagename=CYQ
/Href&urln
ame=cyqorg
an/am/wate
ress/about
us HTTP/1.1" 200 29732
wget hostname /cm/Satellite?pagename=CYQ
/Href&urln
ame=cyqorg
an/am/wate
ress/about
us HTTP/1.1" 200 29732
wget hostname /cm/Satellite?pagename=CYQ
/Href&urln
ame=cyqorg
an/am/wate
ress/about
us HTTP/1.1" 200 29732
wget hostname /cm/Satellite?pagename=CYQ
/Href&urln
ame=cyqorg
an/am/wate
ress/about
us HTTP/1.1" 200 29732
Select all Open in new window
Our community of experts have been thoroughly vetted for their expertise and industry experience.