Dashboards & Visualizations

help Extracting data from logs for a line graph - n00b

okeefo
New Member

Hi,

I'm struggling to get some data in to a chart.

My data looks like this:

2013-04-25 17:08:43,882  nodeId="4",type="NodeMonitoringJmxBean",CpuPerThread="[worker0=1.2, worker2=1.2 otherStuff="notbotherdabout" ...]" 
2013-04-25 17:08:43,889  nodeId="8",type="NodeMonitoringJmxBean",CpuPerThread="[worker0=2.2, worker2=3.2 otherStuff="notbotherdabout" ...]" 
2013-04-25 17:08:43,896  nodeId="26",type="NodeMonitoringJmxBean",CpuPerThread="[worker0=3.2, worker2=3.2 otherStuff="notbotherdabout" ...]"

Whats happening here is every 10 seconds a get a log line of each node (30 in total) with current values of thread cpu.

I want to be able to put this in to a chart/line graph so that I can see all worker0 values for each node. over time (say last 15mins).

Ie.

x axis = time
y axis = workerO values

there will be 30 lines - one for each node

Any help greatly appreciated.

Thanks

Tags (1)
0 Karma

jeff
Contributor

Sounds like you're looking for timechart.

(your search) | timechart span=30s limit=0 avg(workerO) as workerO by nodeID

should get you close to what you're looking for.

kristian_kolb
Ultra Champion

and then click on the little icon that looks like a column chart (just under where it says '534 results..')

0 Karma

kristian_kolb
Ultra Champion

what version are on?

0 Karma
Get Updates on the Splunk Community!

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...