Have your linux logs available on http://localhost:8000/

Document created by ajake01 Employee on Aug 7, 2014Last modified by SamCreek on Dec 17, 2016
Version 2Show Document
  • View in full screen mode

python -m SimpleHTTPServer
Serve current directory tree at http://$HOSTNAME:8000/

http://localhost:8000/

So if you go to /var/log/ and run python -m SimpleHTTPServer

you would be able to see your logs in web and yu can download txt file easier from any pc that is in the same network


Thank you Kemal for this informative tip!

Mary
Hi,

This one is very useul. Only concern is if there is HTTP service already running on the server, will it break that HTTP service?

Thanks,
no , it creates its own website , sub site ..
i think its only available with in domain or local subnet

This document was generated from the following discussion: Have your linux logs available on http://localhost:8000/

Attachments

    Outcomes