Hi
Hope you are doing good..
I want to build one query where I will get user with associate event code or IP for example
If I use stats count by user, event code
I will get
User event code
Abc 1
Abc 2
But I want output like
User event code
Abc 1, 2
I.e. User name should not get repeat for different event code
Can you please guide me here
Thanks
Hi @debjit_k,
you should use values in your stats command, something like this:
<your_search>
| stats values(EventCode) AS EventCode values(ip) AS ip BY user
Ciao.
Giuseppe
Hi @debjit_k,
good for you, see next time!
Ciao and happy splunking
Giuseppe
P.S.: Karma Points are appreciated 😉
Hi @debjit_k,
you should use values in your stats command, something like this:
<your_search>
| stats values(EventCode) AS EventCode values(ip) AS ip BY user
Ciao.
Giuseppe