apache / apache/jmeter

Add ability to read cookies from access log in Access Log Sampler

Open
#2,871 1 comment 0 reactions 0 assignees View on GitHub
enhancement os: macOS P4
Dominant language
Java
Stars
9.5k
Forks
2.3k
Avg merge
1d 22h
Merged PRs (30d)
5

Description

**Jay Sellers** ([Bug 53648](https://bz.apache.org/bugzilla//show_bug.cgi?id=53648&redirect=false)):
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:
1.2.3.4 - - [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.

OS: Mac OS X 10.4

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.