Transferring test logs to Cloud Logging
Set up the transfer of test logs to Yandex Cloud Logging. You can use logs to analyze test results and detect problems during testing.
Resources transferred to a Cloud Logging log group:
loadtesting.log.tank
: General Yandex Tank launch logs.loadtesting.log.phantom
: Logs from the Phantom load generator if it was used in the test.loadtesting.log.pandora
: Logs of the Pandora load generator if it was used in the test.
To set up the transfer of logs to Cloud Logging:
-
Create a log group in the same folder where the test agent is located.
-
Assign the
logging.writer
role for the log group to the service account used to create the test agent. -
Create a new test and specify the created log group in the Log group field.
You can also restart the existing test.
Management console- In the management console
, select Load Testing. - In the left-hand panel, select
Tests. - Select the test. In the top-right corner, click Restart.
- Select the created log group in the Log group field.
- Under Attached files, upload the test data file.
- Click Create.
After the test is complete, the agent will transfer the necessary logs to the specified log group. The ID of the logs in the log group will correspond to the test ID.
- In the management console
Note
You can set up automatic log transfer only before starting the test. Logs of performed tests can be transferred to the log group manually.
Test logs are stored on the test agent at /var/lib/tankapi/tests/<date and time of test launch>
.