• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tail Linux log file from Windows desktop

 
Jehan Jaleel
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I was wondering if you guys know of any tool that will let me tail Linux log file from my Windows desktop. Even though I am a Java Developer (I do feel more comfortable in Windows environment than Linux, yes I know I should be ashamed of myself ).

So right now there is a log file sitting on our Linux serer and to view it I have to log in through Winscp and download that mammoth onto my desktop, or else I have to log in through Putty and fumble through linux commands. Is there any easier way for guys like me?

Thanks for any help/
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18277
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can install cygwin on Windows and it will provide a "mini-linux" environment where you can use not only tail, but most of the other popular command-line utilities.

Or if you did a bit, you will probably find a version of tail for Windows itself. Long before I ever heard of Linux, I was running a lot of Unix utilities that the GNU folks had ported to CP/M. Meaning even before PC-DOS/MS-DOS.
 
Henry Wong
author
Marshal
Pie
Posts: 21423
84
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jehan Jaleel wrote:Hi,

I was wondering if you guys know of any tool that will let me tail Linux log file from my Windows desktop. Even though I am a Java Developer (I do feel more comfortable in Windows environment than Linux, yes I know I should be ashamed of myself ).

So right now there is a log file sitting on our Linux serer and to view it I have to log in through Winscp and download that mammoth onto my desktop, or else I have to log in through Putty and fumble through linux commands. Is there any easier way for guys like me?


Isn't that the purpose of shell scripts? Or in Windows speak -- batch files? You only have to "fumble" though the commands a few more times, as you teach the computer how to do it automatically. On the Linux side, write a shell script that does all of the stuff to tail and save the results. On the Windows side, write a batch file that uses putty to log in and runs the shell script.

Then the whole thing is done with a one line command.... of course, I am a fan of Linux (and windows) and don't mind fumbling -- after all, repetition is the best way train your muscle memory.

Henry
 
Jehan Jaleel
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tim Holloway wrote:You can install cygwin on Windows and it will provide a "mini-linux" environment where you can use not only tail, but most of the other popular command-line utilities.

Or if you did a bit, you will probably find a version of tail for Windows itself. Long before I ever heard of Linux, I was running a lot of Unix utilities that the GNU folks had ported to CP/M. Meaning even before PC-DOS/MS-DOS.


Tim,

Thanks for your response.

There are Windows tail programs like mTail. My dilemma is how to open the file sitting on a Linux server with a tail program running on my windows desktop. I can't simply map a network drive to it like I could were it a Windows server.

Thanks.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18277
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jehan Jaleel wrote:
Tim Holloway wrote:You can install cygwin on Windows and it will provide a "mini-linux" environment where you can use not only tail, but most of the other popular command-line utilities.

Or if you did a bit, you will probably find a version of tail for Windows itself. Long before I ever heard of Linux, I was running a lot of Unix utilities that the GNU folks had ported to CP/M. Meaning even before PC-DOS/MS-DOS.


Tim,

Thanks for your response.

There are Windows tail programs like mTail. My dilemma is how to open the file sitting on a Linux server with a tail program running on my windows desktop. I can't simply map a network drive to it like I could were it a Windows server.

Thanks.


Actually, you can map a Windows network drive to a linux fileshare. It's easier when Samba is doing the sharing and your native Windows networking drivers can access it, but you can get NFS clients for Windows as well.

For quick-and-dirty, however, this is how I'd do it from inside cygwin or a native Linux/Unix box:



Putty does come with a command-line program that can be used similarly, I think. Certainly the PuTTY pscp program works from the command prompt.
 
Philippe Schweitzer
Greenhorn
Posts: 1
Debian Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

You can checkout dbitail.

A Java tool I created, able to read local and distant log files using SSH. It is fairly simple to use.

Some more explanations: https://github.com/pschweitz/DBITail/wiki

Just download version corresponding to your operating system, of native jar release executable within your Java Runtime (requires java 8_40 or higher):

https://github.com/pschweitz/DBITail/releases

You can find a complete documentation (embedded with and in Github's page as well)
 
Campbell Ritchie
Sheriff
Pie
Posts: 49813
69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch and thank you for making that tool available.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic