Skip to content

Commit 87cb99f

Browse files
agauthier-nbcanthonygauthier
authored andcommitted
Added the "exclude" feature in the filters
Version 2.7.0
1 parent fecff50 commit 87cb99f

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ JMeter ElasticSearch Backend Listener is a JMeter plugin enabling you to send te
1616
* By making bulk requests, there are practically no impacts on the performance of the tests themselves.
1717
* Filters
1818
* Only send the samples you want by using Filters! Simply type them as follows in the field ``es.sample.filter`` : ``filter1;filter2;filter3`` or ``sampleLabel_must_contain_this``.
19+
* You can also choose to exclude certain samplers; `!!exclude_this;filter1;filter2`
1920
* Specific fields ```field1;field2;field3`
2021
* Specify fields that you want to send to ElasticSearch (possible fields below)
2122
* AllThreads

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<modelVersion>4.0.0</modelVersion>
66
<groupId>io.github.delirius325</groupId>
77
<artifactId>jmeter.backendlistener.elasticsearch</artifactId>
8-
<version>2.6.11</version>
8+
<version>2.7.0</version>
99
<packaging>jar</packaging>
1010

1111
<name>jmeter.backendlistener.elasticsearch</name>

src/main/java/io/github/delirius325/jmeter/backendlistener/elasticsearch/ElasticsearchBackendClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ private boolean validateSample(BackendListenerContext context, SampleResult sr)
282282
Pattern pattern = Pattern.compile(filter);
283283
Matcher matcher = pattern.matcher(sampleLabel);
284284

285-
if (sampleLabel.contains(filter) || matcher.find()) {
285+
if (!sampleLabel.startsWith("!!") && (sampleLabel.contains(filter) || matcher.find())) {
286286
valid = true;
287287
break;
288288
} else {

0 commit comments

Comments
 (0)