Splunk Search

Suggestions needed! How to combine data from different sensors

CBailey632
Engager

I'm new to Splunk so I apologize if this is very obvious, but I haven't seen anything that seems like it fits my needs exactly in the community. I'm trying to build a dashboard that will display temperature values from sensors based on messages received in a stream. 

The messages come in with a time, a sensor id/name, and a temperature. 

For any given period of time I wont know how many sensors I will receive temperatures from. 

Currently my query is based on a table that splits the sensors into columns and then adds the values based on time: 

CBailey632_0-1678889651371.png

 

This kind of works for me - except I need my dashboard to look like this: 

CBailey632_1-1678889705387.png

 

The line chart is probably good enough, because I can set the nullvaluemode to connect, which covers the gaps in data. But the Singles and Sparklines at the top are not very useful. Basically I'm looking for any suggestions on how I can improve the query to make that top section work better.

I've tried to keep track of a "lastKnownTemp" using last() to use to fill in the null values, but I don't know how to do it for an unknown number of sensors. Ideally I think this would be the way I would want to go if someone knew of a way to accomplish this?

I've considered using transactions to split the messages by sensor id, but then when I get a single event that has a bunch of events inside, I don't really know what to do with them. 

Any suggestions or information would be greatly appreciated. 

Labels (3)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

Try using filldown

View solution in original post

ITWhisperer
SplunkTrust
SplunkTrust

Try using filldown

CBailey632
Engager

Amazing! It worked perfectly. Thank you!

0 Karma
Get Updates on the Splunk Community!

Enter the Dashboard Challenge and Watch the .conf24 Global Broadcast!

The Splunk Community Dashboard Challenge is still happening, and it's not too late to enter for the week of ...

Join Us at the Builder Bar at .conf24 – Empowering Innovation and Collaboration

What is the Builder Bar? The Builder Bar is more than just a place; it's a hub of creativity, collaboration, ...

Combine Multiline Logs into a Single Event with SOCK - a Guide for Advanced Users

This article is the continuation of the “Combine multiline logs into a single event with SOCK - a step-by-step ...