LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Unix admins, how do you remotly tail a logfile via http ? (https://www.linuxquestions.org/questions/linux-software-2/unix-admins-how-do-you-remotly-tail-a-logfile-via-http-610818/)

raf_iso 01-03-2008 08:04 AM

Unix admins, how do you remotly tail a logfile via http ?
 
Hello,

please help me I'm sure that it's very easy but I can't found any solution.

I'm working everyday with a logfile that I have to reload every second to see the output in firefox... http://myserver/mylogfile.log..

What's the command to watch continually a file via http ???

something like that :
Code:

"watch tail http://myserver/mylogfile.log"
The problem is the http link. I can't mount anything. No NFS, no SAMBA. Only http :(

Thanks you for your help.
raf

acid_kewpie 01-03-2008 08:20 AM

just mount it! http://httpfs.sourceforge.net/

looks like it would actually support a tail due to it's use of http range requests. you *could* curl the end of the file manually using range requests, but that would be hard to keep track of what you're doing.

acid_kewpie 01-03-2008 08:33 AM

nice question btw... as for the tail itself, you shouldn't normally run tail through watch, that's pretty horrible. instead use "tail -f filename"

raf_iso 01-03-2008 08:33 AM

great thx !


All times are GMT -5. The time now is 12:25 PM.