Answer the question
In order to leave comments, you need to log in
How to configure locust so that all nodes write the log to one file?
I am using https://locust.io/ on multiple machines. Each --slave and --master node with the --logfile option writes a log in its own directory.
Is it possible to force them to write their common log in one file? Since it is very inconvenient to collect and analyze logs from all machines every time.
Answer the question
In order to leave comments, you need to log in
Unfortunately locust does not support this kind of option, but it is possible to add the --csv-full-history option to the master node command line. This option will write statistics from all slave nodes to one .csv file in the master directory.
To implement writing to a single file, you can use third-party add-ons. (eg: https://loguru.readthedocs.io/en/stable/ )
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question