Help Center > > Getting Started> Creating a Log Transfer Task

Creating a Log Transfer Task

Updated at: Aug 14, 2019 GMT+08:00

Logs are stored on Log Tank Service (LTS) for seven days by default, and earlier logs are deleted automatically. For long-term storage, you can transfer logs to Object Storage Service (OBS) buckets.

Prerequisites

  • You have created log groups and log streams.
  • You have created an OBS bucket.
  • The ICAgent has been installed and configured.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner to select the desired region and project.
  3. Choose Service List > Management & Deployment > Log Tank Service.
  1. In the navigation pane, choose Log Transfer.
  2. On the displayed page, click Create Log Transfer.
    Figure 1 Creating a log transfer task
  3. On the displayed page, configure parameters.
    Table 1 Parameter description

    Parameter

    Description

    Example Value

    Log Group Name

    Select a created log group.

    lts-group-wule

    Log Stream Name

    Select a created log stream.

    LogTopic1

    OBS Bucket

    Created OBS buckets.

    obs-8a09

    Log Prefix

    The prefix of logs transferred to OBS buckets. It distinguishes log files from other files in OBS buckets.

    The format of the transferred log file name is Log prefix_LogTank_Region_transfer time_xxx.

    The value must meet the following requirements:

    • A maximum of 64 characters are allowed.
    • Only letters, digits, underscores (_), hyphens (-), and periods (.) are allowed.

    lts

    Format

    Select Raw Log Format or JSON.

    JSON

    Transfer Log to OBS

    Whether to enable log transfer.

    Yes

    Transfer Period

    Data is automatically transferred to OBS buckets every 2 minutes.

    2 minutes

  4. Click OK.

    When the log transfer status becomes Normal, the transfer task is created successfully.

Did you find this page helpful?

Submit successfully!

Thank you for your feedback. Your feedback helps make our documentation better.

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?







Please complete at least one feedback item.

Content most length 200 character

Content is empty.

OK Cancel