Count and %age of log item

Hi,

I need to create custom script which give me output of the status code from logs:

  • Code 200: [321256] (74.69%)

  • Code 301: [4302] (1.00%)

  • Code 302: [8207] (1.91%)

  • Requests Total: [430112] (100%)

AND total bytes served etc.

Total Bytes Served: [6871mb] (100%)

Any Idea to implement this?

Thank you.

Rana Tanveer

Measure bytes, please discuss in related ticket: Log Analytics: Monitor Bandwidth for each page, download, and measure overall traffic in bytes · Issue #5248 · matomo-org/matomo · GitHub

Measuing HTTP codes -> this is already implemented, click on Actions > Custom variables > Http code and see breakdown by http code