LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 01-03-2008, 08:04 AM   #1
raf_iso
LQ Newbie
 
Registered: Jul 2005
Posts: 18

Rep: Reputation: 0
Question 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

Last edited by raf_iso; 01-03-2008 at 08:06 AM.
 
Old 01-03-2008, 08:20 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,345

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
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.

Last edited by acid_kewpie; 01-03-2008 at 08:29 AM.
 
Old 01-03-2008, 08:33 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,345

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
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"
 
Old 01-03-2008, 08:33 AM   #4
raf_iso
LQ Newbie
 
Registered: Jul 2005
Posts: 18

Original Poster
Rep: Reputation: 0
great thx !
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unix Admins & Programmers MA, FL, NY [ALL LEVELS] jmscarpa LQ Job Marketplace [Archive] 6 10-15-2009 04:10 AM
Shell scripting: Print output to logfile, error to logfile & screen stefanlasiewski Programming 18 05-22-2008 12:47 PM
Unix Admins Senior/Junior MA, FL, NY, AMS jmscarpa LQ Job Marketplace [Archive] 2 07-09-2007 02:07 PM
Domain Admins not Local ADmins - Samba 3.0.7 dlublink Linux - Networking 2 03-01-2005 11:05 AM


All times are GMT -5. The time now is 10:21 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration