Splunk Search

Stats include all fields

tmontney
Builder

| stats sum(Score) AS TotalScore, values(value1) AS value1, values(value2) AS value2, values(value3) AS value3, by Username

How can I just add all fields so they're available in an alert, such as sending an email?

Labels (1)
0 Karma
1 Solution

anilchaithu
Builder

@tmontney 

you can use something like this 

|stats sum(Score) AS TotalScore values(*) as * by Username

 

Hope this helps 

View solution in original post

anilchaithu
Builder

@tmontney 

you can use something like this 

|stats sum(Score) AS TotalScore values(*) as * by Username

 

Hope this helps 

tmontney
Builder

Perfect! I knew there had to be some wildcard support.

0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...