How to write the http response errors to log file

Hello guys,how to write the http response errors to log file when errors occur during load testing and push metrics flow to influxdb at the same time.

Hello! K6 doesn’t push the error log to influxdb.
I wrote this plugin GitHub - Tinkoff/xk6-output-error: A k6 extension for add more information into StdErr - you can use telegraf or vector and upload the log to influxdb after. Moreover, you can use GitHub - grafana/xk6-loki: k6 extension for Loki.

Thanks a lot @Maksimall89 , I resolved it .

1 Like