{"action":"opened","issue":{"url":"https://api.github.com/repos/eldy/awstats/issues/55","repository_url":"https://api.github.com/repos/eldy/awstats","labels_url":"https://api.github.com/repos/eldy/awstats/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/eldy/awstats/issues/55/comments","events_url":"https://api.github.com/repos/eldy/awstats/issues/55/events","html_url":"https://github.com/eldy/awstats/issues/55","id":193730399,"number":55,"title":"Feature request: support Apache time to server request / execution time","user":{"login":"Talkless","id":292191,"avatar_url":"https://avatars.githubusercontent.com/u/292191?v=3","gravatar_id":"","url":"https://api.github.com/users/Talkless","html_url":"https://github.com/Talkless","followers_url":"https://api.github.com/users/Talkless/followers","following_url":"https://api.github.com/users/Talkless/following{/other_user}","gists_url":"https://api.github.com/users/Talkless/gists{/gist_id}","starred_url":"https://api.github.com/users/Talkless/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Talkless/subscriptions","organizations_url":"https://api.github.com/users/Talkless/orgs","repos_url":"https://api.github.com/users/Talkless/repos","events_url":"https://api.github.com/users/Talkless/events{/privacy}","received_events_url":"https://api.github.com/users/Talkless/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-06T10:05:38Z","updated_at":"2016-12-06T10:05:38Z","closed_at":null,"body":"Hi,\r\n\r\n[Apache has](https://httpd.apache.org/docs/2.4/en/mod/mod_log_config.html#formats) `%D`, `%T` and `%{ms|us|s}T` log fields to output time it took to server request. It would be very useful to have support for these fields to catch \"expensive\" queries.\r\n\r\nFor example, to enable this feature, AWStats user could:\r\n\r\n- append `LogFormat` with `%extra1` field, configure Apache appropriately.\r\n- set `ExecutionTimeField=extra1` (by default not used), \r\n- set `ExecutionTimeUnit=us` for use with Apache's `%D` field for logging in microseconds.\r\n\r\nAlternatively, there could be `%exec_us`, `%exec_ms`, `%exec_s` predefined fields, without reusing `%extraN` ones, if that's considered better way.\r\n\r\nIt that's set up, reports could have additional fields such as `Mean execution time`, `Median execution time`, `Total execution time`, shown together with `Viewed`, `Average size`, etc, where appropriate. \r\n\r\nMaybe `ShowExecutionTimeStats=0|1` would be useful, but simply not setting `ExecutionTimeField` should be enough keep this feature disabled, as Apache does not provide this data by default.\r\n\r\nAlso, `ExecutionTimeDisplayUnits=us|ms|s|human_readable #default: same as ExecutionTimeUnits` would be useful to control how these values are printed.\r\n"}}
{"actor":{"display_login":"Talkless"}}