All Apps and Add-ons

cpu usage by JAVA application

dhirendra761
Contributor

Hi,

I want to monitor get, CPU usage **(in percentage) by java application** (installed in my machine).
Could you please suggest the input.conf and query(spl) as well.

Thanks in advance.

0 Karma
1 Solution

woodcock
Esteemed Legend

This is not a Splunk question, this is an Operating System question. You are asking in the wrong place. Once you know HOW to get the information, setup a scripted input to call the command to send the results to Splunk:
https://docs.splunk.com/Documentation/Splunk/latest/AdvancedDev/ScriptSetup

View solution in original post

0 Karma

woodcock
Esteemed Legend

This is not a Splunk question, this is an Operating System question. You are asking in the wrong place. Once you know HOW to get the information, setup a scripted input to call the command to send the results to Splunk:
https://docs.splunk.com/Documentation/Splunk/latest/AdvancedDev/ScriptSetup

0 Karma

dhirendra761
Contributor

Thanks @woodcock for answering.
Also I found below config to get the required data from cpu

Splunk_TA_windows/local/wmi.conf

[WMI:process]
index = windows
disabled = 0
interval = 30
wql = Select IDProcess,Name,PercentProcessorTime,TimeStamp_Sys100NS from Win32_PerfRawData_PerfProc_Process

I think it should be work.

woodcock
Esteemed Legend

That there is a fine example of a scripted input to get this data!

0 Karma

dhirendra761
Contributor

Hello Sir,
@woodcock , @somesoni2 @MuS @martin_mueller @niketnilay @Ayn @lguinn2 ...

Could you please look into this. Thanks

0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

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

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...