简体   繁体   中英

How can I make a "SELECT SUM(column) in splunk?

I want to make a select sum(value) to get only something like

gender     value
Femenino   18500
Masculino  11000

from this Statistics.

Splunk UI

This is my search

" source=users| JOIN type=inner id [ SEARCH source=bills | rename id_user AS id ] | top gender "

尝试将以下内容添加到查询中:

| stats sum(value) as value by gender

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM