Dashboards & Visualizations

Tracking state changes for a day

jeromehenry906
New Member

Here is some background on what I am trying to accomplish, I have 3 separate devices that will be in any of 6 stages of activities throughout a day. I have a base search that will tell when a device changes states, what state it changes to, and what time this occurs. I would like to have a chart or graph that will tell me how long each device was in each state for a given day.  I can't put my search or data on the forum. 

Labels (3)
0 Karma

diogofgm
SplunkTrust
SplunkTrust

If your looking at 1 device at a time, given that you have a table like  "_time_of_change | previous_state | new_state " you can use the "| delta _time_of_change" command to calculate the duration of the previous_state. Make sure you use the time as epoch.

 

------------
Hope I was able to help you. If so, some karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...