Author Topic: Streaming logs.  (Read 2625 times)

xanatose

  • Member
  • ***
  • Posts: 420
Streaming logs.
« on: March 19, 2016, 01:18:27 AM »
I have a small program that writes a log file which I monitor once in a while. When I am at the server, or when using remote desktop, I have no problem, just open a command like and write "type mylog.log" or use baretail. No problem.

However I am sometimes without a good internet connection for remote desktop but good enough for FTP. So I tought I could use Filezilla for simply download the log at whatever byte count it had at the moment and later resume. Unfortunately this didn't work as FileZilla states that it cannot open the file.

So I wonder. What do other people use when they need to monitor a remote log once in a while. Something so simple to setup that even a Trumpbama supporter can do it in an hour or so.


fearless

  • Member
  • ****
  • Posts: 560
    • Github
Re: Streaming logs.
« Reply #1 on: March 19, 2016, 04:20:19 AM »
try copy to another file name - depending on how the file is opened it might still be possible to copy it and then view it with your type command

copy mylog.log mylog.txt /y
type mylog.txt

put that into a viewlog.bat file perhaps? so you only need to type in the command console: viewlog

or once copied to another filename, filezilla should be able to open it and download it.
fearless

Lian Li PC-O11DW Case, ASUS Crosshair VIII Hero, AMD Ryzen 9 5950X, 32GB DDR4, MSI RX 5700XT, NZXT Kraken Z73, Seasonic 1000W PSU

My Github  Twitter  My Gitbook

xanatose

  • Member
  • ***
  • Posts: 420
Re: Streaming logs.
« Reply #2 on: March 19, 2016, 10:21:47 PM »
try copy to another file name - depending on how the file is opened it might still be possible to copy it and then view it with your type command

copy mylog.log mylog.txt /y
type mylog.txt

put that into a viewlog.bat file perhaps? so you only need to type in the command console: viewlog

or once copied to another filename, filezilla should be able to open it and download it.

A simple idea. I like it.
Just copy the file every X minutes using a batch file.

Thanks.