Logstash input to monitor java processess

Hi Elastic Team,

I have set of java applications running on my unix server.

I want to monitor the heath , state (live, or dead) , memory consumption, cpu on a dashboard. How to pass the java processing running on my unix server to logstash config input ?

Can you please help with sample.

I have only tried :
input {
file {
path => "path to .log"
}
}

Hi Have you perhaps considered looking at the Elastic APM Capabilities Especially with the Java Agent Metrics can be reported via the Java Agent AND you would also be able to observe performance of your Java Application As Well.

And / Or if you really want to focus on Host Metrics and observe Metrics for Certain Process running on that host you could use Metricbeat and filter on java processes (or more)

Finally if you are not interested in any of that you could look at the logstash JMX plugin, however I think the 2 solutions above maybe easier / more complete.

1 Like

Thanks Stephenb.

Do you have any sample config of how the the solution 1 and 2 could be achieved?

I'm sorry still noob in ELK.

As a new adopter, I suggest reading the documentation that I linked in the previous post.

APM does not use logstash it has its own APM server.

Metricbeat is pretty simple to get up and running either directly to Elasticsearch or through logstash, I linked the documentation there as well.

The super quick instructions for running Metricbeat can be found in Kibana

http://localhost:5601/app/kibana#/home/tutorial/systemMetrics?_g=()

To run through logstash shows a logstash conf for beats.

https://www.elastic.co/guide/en/logstash/current/plugins-inputs-beats.html#_description_2

Good Luck on the Learning!

Thanks mate. This should do.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.