默认30条上报条数阈值,当缓存到达阈值时上报缓存中的数据 30 <= cacheThreshold <= 1000。 timeInterval number 选填 3 默认3s 上报阈值时间,当达到阈值时间上报缓存中的数据 1 <= timeInterval <= 1800。 platform string 选填
默认30条上报条数阈值,当缓存到达阈值时上报缓存中的数据 30 <= cacheThreshold <= 1000。 timeInterval number 选填 3 默认3s 上报阈值时间,当达到阈值时间上报缓存中的数据 1 <= timeInterval <= 1800。 platform string 选填
默认30条上报条数阈值,当缓存到达阈值时上报缓存中的数据 30 <= cacheThreshold <= 1000。 timeInterval number 选填 3 默认3s 上报阈值时间,当达到阈值时间上报缓存中的数据 1 <= timeInterval <= 1800。 platform string 选填
https://lts-access.cn-north-4.myhuaweicloud.com:8102 华东-上海一 cn-east-3 https://lts-access.cn-east-3.myhuaweicloud.com:8102 华南-广州 cn-south-1 https://lts-access
关键词中不能包含英文分号(;)、英文冒号(:) 关键词中含有其他特殊字符如(+、=、?、#、%、&)需转换为十六进制,即%加字符的ASCII码(%2B、%3D、%3F、%23、%25、%26) 完成以上步骤,即可实现在自建系统免密登录云日志服务LTS。 使用如下iframe嵌套,其中src的值为7中获得的代理URL。
https://lts-access.cn-north-4.myhuaweicloud.com:8102 华东-上海一 cn-east-3 https://lts-access.cn-east-3.myhuaweicloud.com:8102 华南-广州 cn-south-1 https://lts-access
request_time) GET 示例2:统计请求时长最大的3个请求对应的请求方法。 表15 查询分析结果 类型 查询语句 返回结果 场景 SELECT max_by(request_method, request_time, 3) ["GET","GET","GET"] min_by函数
支持在输入正则表达式时进行命名。 支持使用系统默认命名field1、field2、field3……,或对其修改后的名称。 是 是 JSON格式 智能提取字段名称,可定义别名。 是 是 分隔符 默认名称field1、field2、field3……,可进行修改。 是 是 Nginx 根据Nginx配置生成,可定义别名。
omplete为true状态,则表示读取了所有数据。 Java示例代码参考如下,更多信息请参考云日志服务Java SDK。 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
cacheThreshold <= 1000 timeInterval number 选填 3 默认3s 上报阈值时间,当达到阈值时间上报缓存中的数据 1 <= timeInterval <= 1800 日志上报Report方法参数说明。 表3 Report方法参数说明 字段 类型 是否必填 默认值 描述 content
默认30条上报条数阈值,当缓存到达阈值时上报缓存中的数据 30 <= cacheThreshold <= 1000 timeInterval number 选填 3 默认3s 上报阈值时间,当达到阈值时间上报缓存中的数据 1 <= timeInterval <= 1800 platform string 选填
com/huaweicloud/huaweicloud-sdk-go-v3/core/auth/basic" lts "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/lts/v2" "github.com/hua
d_unit",必须是"2min", "5min", "30min", "1hour", "3hour", "6hour","12hour"。 约束限制: 不涉及。 取值范围: 1,2,3,5,6,12,30 obs_period_unit 是 String 参数解释: OBS转
"wheat"), Pair("food_3", "egg")) val fruit = hashMapOf(Pair("fruit_1", "apple"), Pair("fruit_2", "pear"), Pair("fruit_3", "banana")) val label
"log2" "log3" ], "labels": { "user_tag": "string" } } 上报到LTS后: log1的日志时间为:1586850540000000000 log2的日志时间为:1586850540000000001 log3的日志时间为:1586850540000000002
统计1周内的UV,具体SQL查询分析语句如下所示: select count(distinct remote_port) as uv 统计1天所有URI返回请求2xx/3xx/4xx/5xx(返回码),了解业务的执行结果。具体的SQL查询分析语句如下所示: select host, router_request_uri
LTS支持直接将结构化日志转储到DWS。 LTS提供解决方案参考如下图3,可以对日志结构化解析,基于SQL语法分析日志,生成可视化图表,并结合大数据平台帮助企业进一步挖掘数据价值,助力企业数字化转型。 图3 运营分析解决方案
/var/logs/1/2/a.log /var/logs/1/2/3/a.log /var/logs/1/2/3/4/a.log /var/logs/1/2/3/4/5/a.log 以上示例中的/1/2/3/4/5/,表示/var/logs目录中,往里递归的5个目录层级,在这5个目录层级中只要存在a
on/json;charset=utf8。 约束限制: 不涉及。 取值范围: 不涉及。 默认取值: 不涉及。 响应参数 状态码:200 表3 响应Body参数 参数 参数类型 描述 id String ID member_account_id String 组织成员账号id member_project_id
"age": 10} json_filter: ["xiaoming", "xiaowang", "xiaoli"] 示例3:从content字段提取元素name3的值,若字段不存在,则返回default的值。 测试数据 { "content": {"name": "xiaoming"