How to Installing APM agent injava applications

I have answered these questions over at What Kind of logs will push to ES via APM.