mthenw / frontail

📝 streaming logs to the browser. Sponsored by https://cloudash.dev
https://cloudash.dev
MIT License
1.8k stars 251 forks source link

feature request: select file in GUI from url #211

Open bwa opened 4 years ago

bwa commented 4 years ago

If running

/frontail-linux /logsdir1/ /logsdir2/

I would like to start the web UI with a sepeific file as parameter i.e

http://localhost:9001/?file=/logsdir1/some-logsfile.log

an with options: from is in

http://localhost:9001/?file=/logsdir1/some-logsfile.log&from=0

where 0 means the whole file, -2000 means the last 2000 lines (and corresponding whatever negative value) 100 means from line 100 ( and corresponding whatever positive value)