Bug 53648 - Add ability to read cookies from access log in Access Log Sampler
Add ability to read cookies from access log in Access Log Sampler
Status: NEW
Product: JMeter
Classification: Unclassified
Component: HTTP
Macintosh Mac OS X 10.4
: P2 enhancement (vote)
: ---
Assigned To: JMeter issues mailing list
Depends on:
  Show dependency tree
Reported: 2012-08-02 22:35 UTC by Jay Sellers
Modified: 2012-08-02 22:42 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Jay Sellers 2012-08-02 22:35:38 UTC
I would like the ability to use the AccessLogSampler to generate http requests, but I want the requests to use the cookies that were logged in the access log as well.
Maybe allowing users to state where in the log line the cookies are. You could ask for that information in a number of ways. For me, my LogFormat is:

"%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"%{Cookie}i\"" combined

An example log line: - - [31/Jul/2012:23:04:06 -0400] "GET /someurl/ HTTP/1.1" 200 28 "http:/domain/endpoint?params" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.57 Safari/536.11" "cookie1=value1;cookie2=value2"

So maybe an optional configuration parameter could be the LogFormat, or simply stating which group of characters surrounded by "" are the cookies. For the example above it would be 4.
Comment 1 Jay Sellers 2012-08-02 22:42:24 UTC
Adding link to original conversation