Dashboards & Visualizations

Y-Axis Based on Field Values

PaintItParker
Explorer

I have a field, SecondsSpentExecuting. A logged event will have that field. I want to visualize my data with a line chart, so the x-axis is _time, and the y-axis is SecondsSpentExecuting, so for a given event, at a given time on the x-axis, you see on the y-axis visually how long it took compared to other events in that line chart.

The current command I am using is:

timechart count by SecondsSpentExecuting

But in this case, the y-axis is the quantity of events that spent x seconds executing, so it does not work for my purposes.

How could I write a command which considers the actual value of the SecondsSpentExecuting field rather than charting by quantity of events?

Labels (2)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust
| gentimes start=-1 increment=10m 
| eval SecondsSpentExecuting=random() % 50
| rename starttime as _time 
| fields - endhuman endtime starthuman


| table _time SecondsSpentExecuting

View solution in original post

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
| gentimes start=-1 increment=10m 
| eval SecondsSpentExecuting=random() % 50
| rename starttime as _time 
| fields - endhuman endtime starthuman


| table _time SecondsSpentExecuting
0 Karma
Get Updates on the Splunk Community!

Upcoming Webinar: Unmasking Insider Threats with Slunk Enterprise Security’s UEBA

Join us on Wed, Dec 10. at 10AM PST / 1PM EST for a live webinar and demo with Splunk experts! Discover how ...

.conf25 technical session recap of Observability for Gen AI: Monitoring LLM ...

If you’re unfamiliar, .conf is Splunk’s premier event where the Splunk community, customers, partners, and ...

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...