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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...