Originally Posted by kenam08
(..) i am not allowed to install any services on the server. the logs that i want to monitor is the ones that the java application continuously writes..
That is nfo you should have incorporated in your original post: the more precise, factual nfo you spill the better we can tailor advice. So you can access the machine as root but you're not allowed to install services. OK. Then, depending on your approach, there's at leat two things you can do: ask the responsible admins to install software for you or ask them if additional (temporary?) configuration is OK.
If we focus on the java application log there's four things you can do: if it's the applications init script that writes the log file then (temporarily) make it use a log file you don't need root privileges for to read or use log4j and send it to a log file you don't need root privileges for to read or to a remote syslog server. If file locations can't be altered then Rsyslogd (or Syslog-NG) will "import" from any log file and export to any log file or (remote) destination. *Note this requires a little bit of testing and reconfiguration. Also note remote syslog by default uses UDP/514 which is an unprotected plain text stream. Assess if you need to encapsulate it using RELP, VPN or Stunnel or equivalent.
**Also this illustrates that while a reply of "i am not allowed to do X" is
a valid answer it does not help us help you. So please be precise, complete and constructive and supply whatever you actually are