Transferring Logs to OBS
You can transfer logs to OBS and download log files from the OBS console.
To transfer logs, you must have the OBS Administrator permissions apart from the LTS permissions.
Prerequisites
- Logs have been ingested to LTS.
- You have created an OBS bucket.
Creating a Log Transfer Task
- Log in to the LTS console and choose Log Transfer in the navigation pane on the left.
- Click Configure Log Transfer in the upper right corner.
- On the displayed page, configure the log transfer parameters.
After a transfer task is created, you can modify parameters except the log group name, transfer destination, and log stream name.
- Click OK. When the log transfer status changes to Normal, the transfer task has been created.
- Click the OBS bucket name in the Transfer Destination column to switch to the OBS console and view the transferred log files.
Transferred logs can be downloaded from OBS to your local computer for viewing.
Logs stored in OBS are in raw or JSON format.
Modifying a Log Transfer Task
- Locate the row that contains the target transfer task and click Modify in the Operation column.
- Click OK.
Viewing Transfer Details
- Locate the target log transfer task and click Details in the row of the desired task to view the task details.
- On the displayed Transfer Details page, you can view the log transfer details.
Deleting a Log Transfer Task
If logs do not need to be transferred, you can delete the transfer task.
- After a transfer task is deleted, log transfer will be stopped. Exercise caution when performing the deletion.
- After a transfer task is deleted, the logs that have been transferred remain in OBS.
- When you create a transfer task, OBS will grant read and write permissions to LTS for the selected bucket. If one OBS bucket is used by multiple transfer tasks, perform the following operations to delete the transfer task:
- If only one transfer task is created using this OBS bucket, delete the bucket access permission granted to specific users on the Access Control > Bucket ACLs tab page on the OBS console when you delete the transfer task.
- If multiple transfer tasks are created using this OBS bucket, do not delete the bucket access permission. Otherwise, data transfer will fail.
- Locate the row of the target transfer task and choose Delete in the Operation column.
- Click OK.
Viewing Transfer Status
The status of a transfer task can be Normal, Abnormal, or Disabled.
- Normal: The log transfer task works properly.
- Abnormal: An error occurred in the log transfer task. The possible causes are as follows:
- The OBS bucket has been deleted. Specify another OBS bucket.
- Access control on the OBS bucket is configured incorrectly. Access the OBS console to correct the settings.
- The key for the encrypted OBS bucket has been deleted or the authorization has been canceled. Ensure that the key is valid.
- Disabled: The log transfer task is stopped.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot