Splunk Search

Is timechart capable of representing a table of values for start time, end time and duration on a graph?

markthompson
Builder

Hello,
Can somebody please tell me whether or not timechart has the below functionality, or suggest an alternative

I have a table of values, start time, end time & duration. i want to represent these on a graph so that we can see trends.

Any ideas?

peter_krammer
Communicator

if you do not have _time values in your "table" than you probably want something like this:

| eval _time=start_time | timechart count avg(duration) max(duration) min(duration) median(duration)

Just use whatever statistical function you want, but I added a few common ones.
Also end time does not seem to be as relevant to me as start time and duration, so i have not used it in the query.

0 Karma

peter_krammer
Communicator

If you want your aggregation per day you can specify span=1d in the timechart command.
min and max give you the highest and lowest value of duration per day, avg gives you the average duration each day and median will give you the median duration per day.
If you provide more information on what you are trying to find out and also provide a bit of example data, I could provide you with a more detailed help.

0 Karma

markthompson
Builder

Can you explain what this will represent? Problem is I'm waiting for approval for me to actually go ahead and start it.... So its creating the _time variable which is used by timechart, and you're averaging duration? and max and min do what? and I want this to be per day, so it shows duration on a period of , e.g. a month, where we can see that the system is getting slower or faster.

0 Karma
Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...