SPLK-1004 是 Splunk Core Certified Advanced Power User 的考试代码,是 Core Certified Power User 的上一级认证。itmoshi 的列表中写的是 Power User,但实际考试是 Advanced Power User。考查高级搜索与报表命令、知识对象的进阶用法,以及制作仪表板和表单的最佳实践。
Sample event (index=shop sourcetype=orders:json, one event per order):
{"order_id": "O-1001",
"items": [ {"sku": "A1", "qty": 2},
{"sku": "B7", "qty": 5} ]}
Base search:
index=shop sourcetype=orders:json
Fields extracted from the order payload after the base search: order_id
(sku and qty are NOT extracted; _raw still contains the complete JSON,
so they exist only inside the items array in _raw)
A| spath path=items{}.sku output=sku | spath path=items{}.qty output=qty | stats sum(qty) AS total_qty BY sku
B| spath path=items{} output=item | mvexpand item | stats sum(qty) AS total_qty BY sku
C| spath path=items{}.qty output=qty | stats sum(qty) AS total_qty BY order_id
D| spath path=items{} output=item | mvexpand item | spath input=item | stats sum(qty) AS total_qty BY sku