Splunk Search

How can I get a statistics table comparing discovered assets over time ?

Ombessam
Path Finder

Hello Guys,

I'm trying to get the following table:Screenshot 2025-04-07 at 16.46.43.png

I have the following fields in my index: ip, mac, lastdetect (timestamp) and user_id.

Below is what I have tried so far:

Screenshot 2025-04-07 at 16.57.35.png

When I transpose I get the following:

Screenshot 2025-04-07 at 17.01.50.png

I'm a bit stuck. Can anyone help me achieve my goal (getting a table similar to the first table just above) ? Thanks 

Labels (1)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

Have you tried using addtotals?

View solution in original post

Ombessam
Path Finder

Thanks @ITWhisperer  for your quick answer addtotals will give the total of the 3 columns for each row while in this case only the total of last two columns are needed. Any workaround ?

Besides, transposing adds a new row in the top while I want the second row to be the first one (header) of the table. Any idea ? thanks

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Use addtotals, the eval to subtract the first column?

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Have you tried using addtotals?

Ombessam
Path Finder

Thanks @ITWhisperer  I've used addtotals. Just one more thing left now how can I transform last  row Trend to become last column ?

Screenshot 2025-04-08 at 22.54.59.png

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

What you are asking does make much sense - the sparkline is associated with the status (which is why it appears in the same column as the other stats related to each status. What is it that you are hoping to represent by making this a column?

0 Karma

Ombessam
Path Finder

@ITWhisperer  you're right. Thanks

0 Karma
Get Updates on the Splunk Community!

[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 ...

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 ...