Search code examples
javaserver

Java - Get log file from a server


I have a Java Application and want to read in a log file. But this log file be located on a intern Server.

I want to get this file ( like WinSCP ) from the server to my Application and read the file data in. How can I do this ?


Solution

  • You could use an SSH library like JSCH

    and do something like scp from example

    HTH,

    Gal