ukhas / js-logtail

Remote log tailing using the HTTP Range header.
109 stars 54 forks source link

Unable to use path to the log file #12

Closed ReddySk closed 7 years ago

ReddySk commented 7 years ago

Hello,

when using full path to the log file I am getting error 404:

Object Not Found (apps/data/logs/support/glDBHousekeeper.log)

I have tried

var url = "/apps/data/logs/support/glDBHousekeeper.log";
var url = "//apps/data/logs/support/glDBHousekeeper.log";
var url = "\/apps/data/logs/support/glDBHousekeeper.log";

with almost same result. Is it bug or problem between my keyboard and chair?

Thanks, Reddy

kpichardie commented 7 years ago

Hello,

You should check that the url is replying, i think your web server isn't able to serve this url.

Try curl the direct url like :

wget localhost/apps/data/logs/support/glDBHousekeeper.log

This should work to make logtail working.

ReddySk commented 7 years ago

Hello,

yep, that's the problem. The webserver is not listening on the port 80 and almost everything is under SSL.

No problem, I will try to amend the script to work with my environment.

Thanks, Reddy