Loading...
Loading...
Compare original and translation side by side
where _time between (ago(1h) .. now())index=... | command['dataset'] | operatorcidrmatch(cidr, ip)ipv4_is_in_range(ip, cidr)where _time between (ago(1h) .. now())index=... | command['dataset'] | operatorcidrmatch(cidr, ip)ipv4_is_in_range(ip, cidr)| SPL | APL | Notes |
|---|---|---|
| | Dataset replaces index |
| | Explicit where |
| | Same |
| | Different aggregation syntax |
| | Create/modify fields |
| | Select columns |
| | Remove columns |
| | Rename |
| | Sort |
| | Limit rows |
| | Two-step |
| | Keep latest |
| | Regex extraction |
| | Preview feature |
| | Combine datasets |
| | Expand arrays |
| | Manual binning |
| | Bottom N |
| | JSON access |
| No direct equivalent | Use summarize + make_list |
reference/command-mapping.md| SPL | APL | 说明 |
|---|---|---|
| | Dataset替代index |
| | 显式使用where |
| | 用法一致 |
| | 聚合语法不同 |
| | 创建/修改字段 |
| | 选择列 |
| | 删除列 |
| | 重命名字段 |
| | 排序 |
| | 限制行数 |
| | 分两步实现 |
| | 保留最新记录 |
| | 正则提取 |
| | 预览功能 |
| | 合并数据集 |
| | 展开数组 |
| | 手动分箱 |
| | 获取底部N条 |
| | JSON访问 |
| 无直接等效命令 | 使用summarize + make_list替代 |
reference/command-mapping.mdundefinedundefinedundefinedundefined| SPL | APL |
|---|---|
| |
| |
| |
| Same |
| |
| |
| |
| |
| |
| SPL | APL |
|---|---|
| |
| |
| |
| 用法一致 |
| |
| |
| |
| |
| |
undefinedundefined
Complete function list: `reference/function-mapping.md`
---
完整函数列表:`reference/function-mapping.md`
---undefinedundefinedundefinedundefined| SPL | APL | Notes |
|---|---|---|
| | Double 'f' |
| | Requires default |
| | |
| | |
| | 0-indexed in APL |
| | |
| | Explicit types |
| | Operator |
| | Same |
| | Join array |
| | Array length |
| SPL | APL | 说明 |
|---|---|---|
| | 多一个'f' |
| | 必须包含默认值 |
| | |
| | |
| | APL中为0起始索引 |
| | |
| | 显式指定类型 |
| | 使用运算符形式 |
| | 用法一致 |
| | 数组合并为字符串 |
| | 数组长度 |
undefinedundefined
Note: SPL's `1==1` catch-all becomes implicit default in APL.
---
注意:SPL中用`1==1`作为兜底条件,在APL中是隐式默认值。
---undefinedundefinedundefinedundefinedundefinedundefined
---
---undefinedundefinedundefinedundefinedundefinedundefined
---
---undefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefined
---
---| SPL | APL | Speed |
|---|---|---|
| | Fastest |
| | Moderate |
| | Fast |
| | Slowest |
hascontains_cs| SPL | APL | 速度 |
|---|---|---|
| | 最快 |
| | 中等 |
| | 快 |
| | 最慢 |
hascontains_csreference/command-mapping.mdreference/function-mapping.mdreference/examples.mdreference/command-mapping.mdreference/function-mapping.mdreference/examples.md