My data structure is as follows
username,department,salary
bob,finance,2000
joe,HR,2200
chan,finance,3000
bobby,finance,2500
don,HR,1800
I was looking for a Splunk's equivalent command of
... | stats values(salary) by department
So basically the output to be values of the salary aggregated by department
finance,"2000,3000,2500"
hr,"2200,1800"
How to do above aggregation in Watcher/DSL?