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!

Exciting News: The AppDynamics Community Joins Splunk!

Hello Splunkers,   I’d like to introduce myself—I’m Ryan, the former AppDynamics Community Manager, and I’m ...

The All New Performance Insights for Splunk

Splunk gives you amazing tools to analyze system data and make business-critical decisions, react to issues, ...

Good Sourcetype Naming

When it comes to getting data in, one of the earliest decisions made is what to use as a sourcetype. Often, ...