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!

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...

Auto-Injector for Everything Else: Making OpenTelemetry Truly Universal

You might have seen Splunk’s recent announcement about donating the OpenTelemetry Injector to the ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...