首页
功能插件
网市场下载
收费企业版
升级日志
有偿帮助
联系我们
免费开通网站体验
云版本搭建
首页
>
网市场doc
日志服务
## 日志服务设置 1. 创建Project > ...requestlog 2. 创建其内的Logstore > fangwen sitemoneychange kefu siteconsole ## 创建RAM 1. RAM菜单-角色管理 1. 新建角色 2. 角色类型:服务角色 3. 类型信息:LOG 日志服务 4. 配置角色基本信息 1. 角色名称:requestlog 2. 备注:日志服务自动将旧日志投递到OSS进行存储 5. 创建 6. 点击“授权”按钮进行授权 7. 点击“编辑授权策略”按钮 8. 搜索框中,搜索 “OSS” 找到OSS相关资源进行授权。如下图 ![image](http://cdn.weiunity.com/site/341/news/20180131/1517409893313043409.png) 9. 将这两个权限都加上 10. 左侧定位到角色详情,得到RAM ![image](http://cdn.weiunity.com/site/341/news/20180131/1517410891163095170.jpg) ##### 创建 OSS 创建一个OSS Bucket,旧日志将会投递到此OSS ![image](http://cdn.weiunity.com/site/254/news/20180201/1517448776765032461.jpg) ##### SLB投递旧日志到OSS 通过日志服务-进入Project-进入LogStore列表,点击列表的投递的“OSS”,进入投递,配置自动投递: ![image](http://cdn.weiunity.com/site/254/news/20180201/1517449368701059410.jpg) ##### LogStore 索引 1. fangwen ```` htmlFile ip siteid userAgent ```` ![image](http://cdn.weiunity.com/site/341/news/20180201/1517449740518006377.png) 2. sitemoneychange ```` goalid method userid username ```` ![image](http://cdn.weiunity.com/site/341/news/20180201/1517450033488058734.png) 3. siteconsole ```` action ip methodName referer url userAgent userid ```` ![image](http://cdn.weiunity.com/site/341/news/20180207/1517980426909049156.png) 4. kefu ```` content receiveId receiveSocketId receiveSocketUuid receiveUserName sendId sendUserName ```` ![image](http://cdn.weiunity.com/site/341/news/20180201/1517451639315008247.png)