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!

What the End of Support for Splunk Add-on Builder Means for You

Hello Splunk Community! We want to share an important update regarding the future of the Splunk Add-on Builder ...

Solve, Learn, Repeat: New Puzzle Channel Now Live

Welcome to the Splunk Puzzle PlaygroundIf you are anything like me, you love to solve problems, and what ...

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...