Splunk Search

How to create scatter graph correlating two data sources of transactions and average CPU usage?

dfigurello
Communicator

Hi Splunkers,

I have two data sources. In the first i have the number of transactions executed grouped by hours. In the second i have the average cpu usage for the same transactions in the same time. I need do correlate the number of transactions with the average cpu usage in a scatter graph (x,y). Is it possible?

E.g>
cpu.csv
time,cpu
00:00,0.3
01:00,025
02:00,0.50
03:00,0.87
04:00,090

transaction.csv
Time,transaction
00:00,50
01:00,60
02:00,70
03:00,87
04:00,25

Finally, I need create a prediction about that information, is it possible using scatter graph?

Cheers,

0 Karma

lguinn2
Legend

I would probably do something like this

source=cpu.csv OR source=transaction.csv
| eval Time=coalesce(Time,time)
| stats first(cpu) as cpu first(transaction) as xact by Time
| table cpu xact

Then choose the visualization for scatterplot. This does not provide any mechanism for fitting a line to the data.

dfigurello
Communicator

lguinn ,
is it impossible to create a predict in this case ?

Tks.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...

What Is the Name of the USB Key Inserted by Bob Smith? (BOTS Hint, Not the Answer)

Hello Splunkers,   So you searched, “what is the name of the usb key inserted by bob smith?”  Not gonna lie… ...

Automating Threat Operations and Threat Hunting with Recorded Future

    Automating Threat Operations and Threat Hunting with Recorded Future June 29, 2026 | Register   Is your ...