Dashboards & Visualizations

Bar Graph/Timechart show multiple values for same field and remove whitespace from graph

tbrown
Path Finder

I have events which are transactions. I've extracted a field from these events which are the site they come from. Basically, I want to make a bar graph/timechart/chart that shows the duration of each of these transactions, separated by the site they come from. I don't want to use the avg() or sum() or max() options for a chart/timechart because I want every event to appear on the graph, I don't want to only show the max() for each site.

I've tried a timechart using "cont=false" but that didn't work because it still automatically grouped certain events together. I've tried "stats count by Site, duration", and while that works, it still shows the count bars on the graph, and I don't want that, and it also doesn't group them according to time (even if I use "| sort -_time")

 

Labels (4)
0 Karma

isoutamo
SplunkTrust
SplunkTrust

Hi

something like this?

| makeresults
| eval _raw="site,tr,duration
A,a001,100
A,a002,10
B,b001,50
C,c001,25
B,b002,14
C,c002,22"
| multikv forceheader=1 
| rename COMMENT as "sample data generation"
| chart values(duration) as duration over site by tr

r. Ismo 

0 Karma
Get Updates on the Splunk Community!

Splunk Forwarders and Forced Time Based Load Balancing

Splunk customers use universal forwarders to collect and send data to Splunk. A universal forwarder can send ...

NEW! Log Views in Splunk Observability Dashboards Gives Context From a Single Page

Today, Splunk Observability releases log views, a new feature for users to add their logs data from Splunk Log ...

Last Chance to Submit Your Paper For BSides Splunk - Deadline is August 12th!

Hello everyone! Don't wait to submit - The deadline is August 12th! We have truly missed the community so ...