> For the complete documentation index, see [llms.txt](https://docs.spotmaxtech.com/maxbook/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.spotmaxtech.com/maxbook/saas-gong-neng-jie-shao/zhi-neng-cun-chu/e-li-yun.md).

# 阿里云

## 一、OSS对象存储开启SLS日志服务

在开通的bucket详情中，选择日志管理，添加实时查询，添加立刻开通

![](https://3891039810-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lo-4MFDo1AwQyA0ZUax%2F-Mjcq_GFe8r7272tOBSm%2F-Mjcs8Hmi0WoQ-VHF7lm%2Fimage.png?alt=media\&token=6a67f694-f306-4524-9b68-6bbe90196bc3)

## 二、Saas页面添加日志收集

1、进入[spotmax成本优化](https://manage.spotmaxtech.com/) 点击 **立刻添加** 按钮

**注意！**&#x8BE5;功能需要授权两个权限：

**AliyunLogReadOnlyAccess** 用于有权限分析用户日志数据

**AliyunOSSFullAccess** 用于有权限对文件进行层级转换

![](https://3891039810-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lo-4MFDo1AwQyA0ZUax%2F-MjcsLiGEilbUzzSFoDp%2F-MjctxPfyMRhM_32VE0j%2Fimage.png?alt=media\&token=a80513dc-fc0c-4d0b-bfdb-e13304cbd8c4)

2、添加成功后，按钮变成 设置生命周期

![](https://3891039810-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lo-4MFDo1AwQyA0ZUax%2F-Mjcuz0MhrUBLgjKdx8o%2F-MjcvMZGmc2ANmFfdPoD%2Fimage.png?alt=media\&token=09072298-47ed-4025-9666-02b810646476)

3、对生命周期进行设置

![](https://3891039810-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lo-4MFDo1AwQyA0ZUax%2F-Mjcuz0MhrUBLgjKdx8o%2F-Mjcv_N--8TnXep0vnUN%2Fimage.png?alt=media\&token=7cc5b32c-582e-476a-beaa-9580661be9d0)

![](https://3891039810-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lo-4MFDo1AwQyA0ZUax%2F-Mjcuz0MhrUBLgjKdx8o%2F-Mjcvj-ymeA9hEQMdEyf%2Fimage.png?alt=media\&token=c6ee1a7d-0c3e-4bfa-a889-e19a094b7307)

![](https://3891039810-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lo-4MFDo1AwQyA0ZUax%2F-Mjcuz0MhrUBLgjKdx8o%2F-MjcvqAjjWrNX6hwUq8m%2Fimage.png?alt=media\&token=f78d9348-c7df-495b-a957-cd74f6a16b9a)

选择完成后，点击开启，自动开启文件层级转换

**注意！存储类型的转换(可多选)：**

**全部：当发现文件可以优化时，按照成本最优的转换层级**

**标准：只允许文件转换 标准 层级**

**低频：只允许文件转换 低频 层级**

**归档：只允许文件转换 归档 层级，当访问时，需要把文件解冷才能访问**

![](https://3891039810-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lo-4MFDo1AwQyA0ZUax%2F-MjcwjuWXWAorw48rcrq%2F-Mjcwpz1T6FfISPNpten%2Fimage.png?alt=media\&token=46455e5b-8b39-475a-8f1d-b218f2519b7b)

## 三、注销SLS日志收集

阿里云一个Account ID可以收集每个区域的SLS日志，因此如果A子账号开启了 上海 区域的智能存储，B子账号如果在 上海 区域开启就会提示，已经有子账号开启，如果B账号需要上海区域的智能存储，A账号需要先注销，才能绑&#x5B9A;**，**&#x56E0;为子账号A、B同属一个Account ID

![](https://3891039810-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lo-4MFDo1AwQyA0ZUax%2F-MjcxH6Qr42eHkX41c3b%2F-Mjcyl9pmrP4cK_Toj1E%2Fimage.png?alt=media\&token=3b1bc674-5dbd-40e0-ad3e-1488f4e312b2)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.spotmaxtech.com/maxbook/saas-gong-neng-jie-shao/zhi-neng-cun-chu/e-li-yun.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
