Splunk Search

Simple question.. I think.. Charting field values over time

ericrobinson
Path Finder

I have a search that defines a transaction. Fields extracted are rmi_time and persist_time. How can I graph those values over time? I am not looking for the min,max or otherwise.. But the original values for each transaction.

Tags (3)
0 Karma

Stephen_Sorkin
Splunk Employee
Splunk Employee

Although specifying an aggregation function to make the x-axis of the data table continuous and uniform with one data point for each of fewer than a few hundred points is a strong, strong suggestion, it's not essential when charting. As long as you provide a table to our charting subsystem to render individual time points, provided that there are fewer than 250 of them (any more will be discarded). Assuming that you have a search that yields events with timestamps and the values of these metrics, you can add to your search and click on "Show report":

... | table _time rmi_time persist_time

Only the most recent 250 data points will be shown in this chart.

0 Karma

sideview
SplunkTrust
SplunkTrust

Note that the same topic was dealt with quite well over at: http://answers.splunk.com/questions/10349/chart-only-showing-1000-events

0 Karma

gkanapathy
Splunk Employee
Splunk Employee

In any given time interval, there may be more than one value of rmi_time, and a graphed series will only be able to display one point for that interval. Therefore, you must specify an aggregation function, i.e., how to resolve having potential multiple values in an interval.

If you know ex ante that your chart and intervals will only ever contain at most one value, then you can simply use e.g., first(rmi_time) as rmi_time, (or any of max(), min(), avg(), sum(), median() etc. for numeric data).

Simeon
Splunk Employee
Splunk Employee

When you chart over time the values will likely be put into bins. In most situations, when charting those types of values you describe, using avg is the easiest. You could also use the first or last function.

http://www.splunk.com/base/Documentation/latest/SearchReference/CommonStatsFunctions

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...