How to save Details about slow response

I wondering how in optimal way show details about slow responses after Simulation.

In my case every request have in header unique UUID and I want to show in any way all UUID where response time is bigger than definied limit.

I have think about that a while and I created below example:

import io.gatling.javaapi.core.ScenarioBuilder;
import io.gatling.javaapi.core.Simulation;
import io.gatling.javaapi.http.HttpProtocolBuilder;

import java.util.*;
import java.util.function.Supplier;

import static io.gatling.javaapi.core.CoreDsl.*;
import static io.gatling.javaapi.http.HttpDsl.http;

public class Case0027SaveDetailsAboutSlowResponseSimulation extends Simulation {

    int TIME_LIMIT_TO_LOG = 700;
    List<String> listOfSlowUUIDs = new ArrayList<>();

    HttpProtocolBuilder httpProtocol =

    Iterator<Map<String, Object>> feederUUID =
            Stream.generate((Supplier<Map<String, Object>>) () -> {
                        String uuidString = UUID.randomUUID().toString();
                        return Collections.singletonMap("uuidString", uuidString);

    ScenarioBuilder scn =
                    ).doIf(session -> session.getInt("responseTimeInMillis")>TIME_LIMIT_TO_LOG)
                                exec(session ->{
                                    return session;

    public void after() {
        System.out.println("Simulation is finished!\nBelow list of Slow UUIDs:");

WDYT @slandelle @sbrevet about that?
It’s optimal solution? :slight_smile:
PS. SOUT is only for example, there will be some kind of save to file.

Hi @GeMi ,

Sorry, but we can’t help with building custom analysis and reporting. These fall in the scope of Gatling Enterprise features.


@slandelle thank you for information, I understand.