Reporting

[ adding row numbers to scheduled save search]

asarolkar
Builder

I have a saved search which lists results in this format

Field1 Field 2 Field 3
A aa aaa
B bb bbb

When I schedule a saved search and schedule it to send out a report via email, I need for the final report to contain row numbers as well - so its readable - preferably as the FIRST column (in the extracted csv -- or the inline format - we get to pick from either of these two options)

I would I do that ?

0 Karma
1 Solution

Stephen_Sorkin
Splunk Employee
Splunk Employee

You can use streamstats. To the search, add:

| streamstats count as row
| table row Field1 Field2 Field3

View solution in original post

sloshburch
Splunk Employee
Splunk Employee
0 Karma

Stephen_Sorkin
Splunk Employee
Splunk Employee

You can use streamstats. To the search, add:

| streamstats count as row
| table row Field1 Field2 Field3

asarolkar
Builder

that worked like a charm ! thanks

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...