Splunk Search

Stats format help

SS1
Path Finder

Hi,

I have below output with my search, 

base search| stats count by User, action

Useractioncount
Alexinstall3
Alexuninstall5

 

But i would like the table to display as below

UserinstalluninstallTotal
Alex358

 

Please Let me know if this is possible

Labels (5)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Try something like this

base search| stats count by User, action
| eval {action}=count
| fields - action
| stats values(*) as * by User
| addtotals
0 Karma
Get Updates on the Splunk Community!

Splunk Training for All: Meet Aspiring Cybersecurity Analyst, Marc Alicea

Splunk Education believes in the value of training and certification in today’s rapidly-changing data-driven ...

Investigate Security and Threat Detection with VirusTotal and Splunk Integration

As security threats and their complexities surge, security analysts deal with increased challenges and ...

Observability Highlights | January 2023 Newsletter

 January 2023New Product Releases Splunk Network Explorer for Infrastructure MonitoringSplunk unveils Network ...