Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
91 views4 pages

JMeter Access Log Sampler Guide

This document provides a step-by-step tutorial for using Jmeter's access log sampler. The access log sampler allows simulation of real production traffic by replaying request data captured in web server access logs. It outlines how to configure popular web servers like WebLogic, Tomcat, and WebSphere to output extended log formats, and how to set up a Jmeter test plan to select an access log file and replay the requests.

Uploaded by

Bogdan Alamita
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
91 views4 pages

JMeter Access Log Sampler Guide

This document provides a step-by-step tutorial for using Jmeter's access log sampler. The access log sampler allows simulation of real production traffic by replaying request data captured in web server access logs. It outlines how to configure popular web servers like WebLogic, Tomcat, and WebSphere to output extended log formats, and how to set up a Jmeter test plan to select an access log file and replay the requests.

Uploaded by

Bogdan Alamita
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Access log sampler Step-by-step

This is a short tutorial on Jmeter's access log sampler. The purpose of the access log sampler is to provide an easy way to simulate production traffic. There are several benefits to using access logs. 1. rather than guess what users are doing, the test plan is using real traffic data . as the traffic pattern changes, the access log provides a record of individual changes and general shifts in usage !. access logs contain a lot of useful data, which may provide some insight ". access logs can be minded to determine different types of users #. access logs can capture detailed session information The down side of using access logs for test plans is you have to configure the webserver to output the re$uest information. This may not be appropriate where security is an issue. %or e&ample, if the webserver dumps the post data from each re$uest to the access logs, users login and password would be stored in plain te&t. 'ere are some general cases where access logs might be inappropriate. 1. security sensitive applications where the data is encrypted . the application does not allow fine grain control of which re$uest parameters are written to the access logs !. the webserver cannot be configured to append the post data to the access log ". the webserver is hosting multiple applications, but doesn't provide a way to log the re$uests of one application to a separate file To ta(e advantage of access logs, the first thing is the webserver needs to be configured to use e&tended log format. )in(s for configuring the popular containers are provided below. *+A ,eblogic - http-..e-docs.bea.com.wls.docs/0.adminguide.web1server.html211!343 Tomcat - http-..5a(arta.apache.org.tomcat.tomcat-#.0-doc.config.valve.html ,ebsphere - http-..e-docs.bea.com.wls.docs41.adminguide.web1server.html211!343 6esin - http-..www.caucho.com.resin-!.0.config.log.&tp2access-log 7n some cases, it may be desirable to write custom logging, so that sensitive information is not written to the access logs. This article does not cover the techni$ues for writing custom logging. Step-by-Step 1. Start Jmeter . select 8test plan9 !. right clic( add -:thread group

". select thread group #. right clic( add -: sampler -: access log sampler

4. right clic( on 8thread group9 add -: listener -: aggregate report

/. select the access log sampler

3. enter the ip address or hostname ;. enter the port 10.if you want to download the images, set 8<arse images9 to true. 11.Select a file for 8log file location9

1 .select aggregate report 1!.enter 8results.5tl9 for filename

At this point, the test plan is ready. Start the test with =T6)-6 or from the menu start -: run.

You might also like