Hi,
I would be grateful for any help.
In my fields we are having two fields which are: data.user_id and data.config.offlineGDTS
data.config.offlineGDTS can have value true or false
My questions is: How can I have statistics for each user how many events he has for data.config.offlineGDTS=true and data.config.offlineGDTS=false ?
Basically I would like to have in one row: user_id, sum(data.config.offlineGDTS=true), sum(data.config.offlineGDTS=false)
What I've tried looks like this:
index=cs_engineering sourcetype=pizza_app data.offlineGDTS=* | stats
count(eval(data.offlineGDTS="true")) as ONLINE_GDT
count((data.offlineGDTS="false")) as OFFLINE_GDT
by data.user_id
... View more