Datatables as a tool for access log analysis

Datatables as a tool for access log analysis

ngungongungo Posts: 64Questions: 23Answers: 2

Hi,

As the title says, I am thinking of:
1. Read an access log (or error log)
2. Parse it into a DOM structure
3. Use Datatables for analysis.

I would appreciate for any input. Thanks.

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    The access and parsing of the log is really outside the scope of this forum. However, if you have access to the log via whatever your web-environment is on the server-side (I'm not sure how safe that is) that would be one option - have it read the file, parse it however required and then output into HTML.

    Allan

  • ngungongungo Posts: 64Questions: 23Answers: 2

    Thanks Allan,

    I meant it, the analysis, would be an application for dataTables. :)

    I am thinking along the line of instead of backend parsing (more load for the host) frontend can get the content of the file then use js to parse into HTML (more load distrubuted).

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    Sure - the front end display is a DataTables application - but that could be as simple as $().DataTable() on a generated HTML table or use ajax to Ajax load the data. The generation of that table (i.e. reading it from the log file) is outside of the scope of DataTables.

    Allan

This discussion has been closed.