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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...