Getting Data In

Trying to integrate perf4j with our project and aggregate the results in Splunk

gaoagong
Engager

I'm trying to figure out how to integrate perf4j into our project in such a way that I can easily read the statistics and aggregate/graph/make charts in Splunk.

Anyone have any experience with this?

Tags (2)
0 Karma

marciogh
Engager

Use Perf4J CSV log4j appender, and extract the contents with this:

... | rex field=_raw "\"(?<perf4jtag>.*)\",.*,.*,(?<avg>.*),(?<min>.*),(?<max>.*),(?<dev>.*),(?<count>.*)" | timechart avg(dev) by perf4jtag
0 Karma

gaoagong
Engager

I have created the following query, but it doesn't seem to be sorting correctly.

host=somehost* source=*logfile.log | multikv | search *.success | stats avg(Avg_ms_) as avg, min(Min) as min, max(Max) as max, sum(Count) as count by Tag | sort - avg

Here is some sample data.

Performance Statistics 2013-04-23 12:20:00 - 2013-04-23 12:30:00
Tag Avg(ms) Min Max Std Dev Count
someAPI.success 155.0 155 155 0.0 1
someOtherAPI.success 243.0 243 243 0.0 1
yetAnother.success 283.0 283 283 0.0 1
heyLookAnother.success 261.5 192 331 69.5 2
pletheraOfAPI.success 1.0 1 1 0.0 1
tisTrue.success 1769.0 1769 1769 0.0 1

0 Karma
Get Updates on the Splunk Community!

Splunk Observability Cloud’s AI Assistant in Action Series: Analyzing and ...

This is the second post in our Splunk Observability Cloud’s AI Assistant in Action series, in which we look at ...

Elevate Your Organization with Splunk’s Next Platform Evolution

 Thursday, July 10, 2025  |  11AM PDT / 2PM EDT Whether you're managing complex deployments or looking to ...

Splunk Answers Content Calendar, June Edition

Get ready for this week’s post dedicated to Splunk Dashboards! We're celebrating the power of community by ...