oxidized-web icon indicating copy to clipboard operation
oxidized-web copied to clipboard

Expose log file via web UI

Open RichiH opened this issue 11 years ago • 6 comments

This could be as simple as offering a page that loads the log file in full and displays it via www.

If the web UI is the preferred way to interact with oxi, it should be possible to look up any errors/warnings in there, as well.

RichiH avatar Aug 16 '14 10:08 RichiH

On ruby 2.0 or older, or 1.9.3 with appropriate gem loaded it's all syslog, so we don't know where it's written, it might not be written even locally. We'd need to revert to local logging to guarantee access there.

ytti avatar Aug 16 '14 19:08 ytti

You could offer local log as an option and, if it's enabled, display that. If it's not enabled, let the user know that they could do it if they wanted to in the "logs" page.

RichiH avatar Aug 17 '14 22:08 RichiH

Should we allow enabling both or just one at a time?

log: syslog: true file: /tmp/poop

or

log: /tmp/poop syslog: true

or

log: [/tmp/poop SYSLOG]

ytti avatar Aug 18 '14 06:08 ytti

I like the idea to allow both syslog and file simultaneously.

twindh avatar Sep 23 '15 06:09 twindh

Yeah we need to return file logging support. Especially for dockerized installs it's more prudent to log to file (STDOUT).

ytti avatar Sep 23 '15 15:09 ytti

Can the discussion of logging to a file be moved to ytti/oxidized?

Once that is implemented, I can look into displaying the logs in the web UI.

supertylerc avatar Dec 28 '15 07:12 supertylerc