【发布时间】:2021-10-06 08:11:36
【问题描述】:
您可以通过 time_span 在 Splunk 中进行双重计算吗? 我想统计一个小时内售出的水果的点击次数。
我的代码:
|bucket _time span=1h |eventstats 按水果计为 count_in_an_hour time |stats counts as count_count by fruit |table fruit count count_count |排序 count_count 个数
我可以用一点数据来运行它;但是因为我有大量的数据,所以它需要很长时间并且占用大量空间导致“空间不足错误”。
我的样本数据集,
name fruit location time
mary apple east 5.10
ben pear east 6.10
peter pear east 5.50
ben apple north 7.10
ben mango north 7.40
peter mango north 5.30
mary orange north 7.20
alice pear north 7.20
janet pear north 7.20
janet mango west 6.30
janet mango west 5.50
peter mango west 4.20
janet pear west 5.50
【问题讨论】:
标签: splunk splunk-query