Getting Data In

How to monitor duration of very long events?

floko
Explorer

Hi all!
How would you go on monitoring the duration that a service is in state "Connected"?
Let's say I have 10 Instances of a service running on a Server, each instance writes its own logfiles.
At some point of time, another piece of software connects to one of these instances. this results in a certain message in this instance's logfile, i.e. Connected.
At some other time, another piece of software connects to a different instance of the service, which again results in a Connected message for this service.

I would like to get the duration of each instance that it is in state connected. If there was a Disconnect in-between, I am not interested in the overall sum, only in the current duration if it is Connected.

The problem here is that the Connected state can last very long, i.e. over 100 days, while my max bucket size is only 35 days.

So, is it even possible in these circumstances? If so, how?
Thanks!

0 Karma
1 Solution

HiroshiSatoh
Champion

It is recommended to save the key fields (start time, disconnect time, instance name, state) in the LOOKUP file.
Updates the LOOKUP file when logging instance connection or disconnection is logged.

View solution in original post

HiroshiSatoh
Champion

It is recommended to save the key fields (start time, disconnect time, instance name, state) in the LOOKUP file.
Updates the LOOKUP file when logging instance connection or disconnection is logged.

floko
Explorer

Sorry for answering so late.
Your suggestion with lookup files was very helpful.
I marked it as Accepted Answer! 🙂

0 Karma
Get Updates on the Splunk Community!

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...