You can transfer logs to OBS to keep logs for a long time.
Local log files are cleared periodically, but the logs transferred to OBS will not be affected.
To transfer logs, you must have the OBS Administrator permissions apart from the LTS permissions.
After a transfer task is created, you can modify parameters except the log group name, and log stream name.
Parameter |
Description |
Example Value |
---|---|---|
Log Group Name |
Select a log group. |
N/A |
Log Stream Name |
Select a log stream. |
N/A |
OBS Bucket |
|
N/A |
Custom Log Transfer Path |
|
LTS-test |
Log File Prefix |
The file name prefix of the log files transferred to an OBS bucket The prefix must meet the following requirements:
Example: If you enter LTS-log, the log file name will be LTS-log_Log file name. |
LTS-log |
Format |
The storage format of logs. The value can be Raw Log Format or JSON.
|
Json |
Transfer Log to OBS |
Enable log transfer to OBS. |
Enabled |
Transfer Period |
The interval for automatically transferring logs to OBS buckets. The value can be 2, 5, or 30 minutes, or 1, 3, 6, or 12 hours. |
3 hours |
Transferred logs can be downloaded from OBS to your local computer for viewing.
The status of a transfer task can be Normal, Abnormal, or Disabled.
If logs do not need to be transferred, you can delete the transfer task.