LeKovr / webtail

Tail logfile via websocket

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How To add multiple Log file root paths?

reddysainathn opened this issue · comments

Hello,

This app is really useful, can you please help me How to view multiple directories, so I can have one port to open for multiple application Log files.

-Thanks.

Multiple roots support will require the following changes:

  1. config: change --root option from string to []string with items like alias:root and appropriate parse it here
  2. indexer: to walk through all roots and add alias: as channel name prefix
  3. tailer: to change channel -> filename translation

Also it might require some updates of index page

So, we could prefer adding support of journald for multiple log sources