log viewer table

log viewer table

ShownShown Posts: 4Questions: 0Answers: 0
edited May 2011 in General
I've system logs text files, and I was searching for a tool able to view them, filter them and load on-demand (pagination) in real time. Datatables seems to do all of this. I wonder if is it able to "wait and hear" for new messages and silently update current table view. I'm using PHP and have full SSH access to the disk, and probably will use "grep" command in order to filter much content.
What I'd like to develop is something working like this: https://freepository.com/ajax-logtail-viewer/ajax-logtail-viewer.php but instead of a simple scrolling div would like to have data in Datatable.
Thanks in advace

Replies

  • allanallan Posts: 63,304Questions: 1Answers: 10,433 Site admin
    DataTables will consume a JSON object for data (new in 1.8) or a Javascript array. If you just have plain text, then it would need to be reformatted into an array so it can be displayed in the table. But there than that, it should be no problem - I've used it as a log viewer myself several times.

    Allan
This discussion has been closed.