• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Reading log files from various unix servers through Java program on windows

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Get org.apache.commons package from http://jakarta.apache.org/site/downloads/downloads_commons-net.cgi


[/CODE]
 
Arthur Ford
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ,
Thanks a lot for the reply. But unfortunately, FTP is disabled in all the servers.
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So what do you have to work with? That drives the solution and without knowing those parameters, we're kind of in the dark.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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)?

Thanks in advance.
 
Joe Ess
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you tried file compression? A zipped-up text file is a fraction (10% or less) of the size of an uncompressed file.

I'm trying to modify existing application to perform search on Unix servers rather than FTPing every single file.



That would be another good solution.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic