Dashboards & Visualizations

Charting problem

simonattardGO
Path Finder

Hi all,

I have serveral log lines which have the following format:

TIMESTAMP | CLIENT-TYPE | CLIENT-NAME | PROFIT |

CLIENT-TYPE and PROFIT are both extracted fields.

I would like to obtain a plot with the following axes: Y-axis = Average Profit and X-Axis = Client Type, i.e. the search should calculate the average profit for each client-type and then plot the results.

Can this be obtained using 'chart'?

Thanks

Tags (1)
0 Karma

okrabbe_splunk
Splunk Employee
Splunk Employee

Yes, this will be very easy using the chart command.
... | chart avg(profit) by client-type

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

Splunk is officially part of Cisco

Revolutionizing how our customers build resilience across their entire digital footprint.   Splunk ...

Splunk APM & RUM | Planned Maintenance March 26 - March 28, 2024

There will be planned maintenance for Splunk APM and RUM between March 26, 2024 and March 28, 2024 as ...