Gitlab: Job's log exceeded limit of 4194304 bytes

Hi,
Our Gitlab issues the following:

Job's log exceeded limit of 4194304 bytes.
Job execution will continue but no more output will be collected.

Is there a way of preventing K6 to issue a long log, and just present the final result?

You can try running k6 with the --quiet flag: Options reference

Alternatively, you can just redirect the console.log() output to a file: Options reference
Or silence all of the logs or redirect them to Loki: Options reference

Thank you so much @ned . It helps!