Reading log files from various unix servers through Java program on windows
Arthur Ford
Greenhorn
Joined: Sep 06, 2006
Posts: 22
posted
0
Hi,
I have few production unix servers. For debugging purposes, I have to login into 5-6 servers and check for logs in each of the servers. Is it possible to automate this task? Can I write a java program which will connect to each of the servers and read the log files. I cannot run any programs in the unix boxes. Anything that has to happen has to happen in the window box. Any suggestions or ideas?
Thanks!
Sushil Sharma
Greenhorn
Joined: Nov 02, 2006
Posts: 22
posted
0
Get org.apache.commons package from http://jakarta.apache.org/site/downloads/downloads_commons-net.cgi
[/CODE]
Arthur Ford
Greenhorn
Joined: Sep 06, 2006
Posts: 22
posted
0
Hi , Thanks a lot for the reply. But unfortunately, FTP is disabled in all the servers.
Hi,
I'm experiencing similar issue. In my case I have Java application that searches multiple files on few different Unix servers for user specified search terms, but the problem is that FTPing all those files simply takes too much time making application unusable (we have log files that are over 100 MB in size). I'm trying to modify existing application to perform search on Unix servers rather than FTPing every single file. Did anyone did similar thing before? Does anyone have any suggestions? It is possible to write ruby script and manually execute this, but is it possible to incorporate this as part of Java application (perhaps using ssh4j or jruby)?