https://github.com/nodejh/actiontrail-create-trail
Create Trail By SDK
https://github.com/nodejh/actiontrail-create-trail
Last synced: 8 months ago
JSON representation
Create Trail By SDK
- Host: GitHub
- URL: https://github.com/nodejh/actiontrail-create-trail
- Owner: nodejh
- Created: 2020-11-18T03:53:22.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-19T03:41:42.000Z (over 5 years ago)
- Last Synced: 2025-03-06T02:43:34.219Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README-zh_CN.md
Awesome Lists containing this project
README
## 通过 SDK 创建跟踪
[English](./README.md) | 简体中文
- 编程语言: python3
目前创建跟踪分为两步:
- 配置日志服务
- 创建并启用跟踪
### 文件说明
- [create_log.py](./create_log.py) 配置日志服务
- [create_trail.py](./create_trail.py) 创建并启用跟踪
- [log_config/log_index.json](./log_config/log_index.json) SLS 日志索引配置
- [log_config/log_dashboard.json](./log_config/log_dashboard.json) SLS 日志报表索引配置
### 配置日志服务
```sh
$ pip install -U aliyun-log-python-sdk
$ python create_log.py
```
### 创建并启用跟踪
```sh
$ pip install aliyun-python-sdk-core
$ pip install aliyun-python-sdk-actiontrail
$ python create_trail.py
```