{"id":29190748,"url":"https://github.com/owncloud/diagnostics","last_synced_at":"2026-02-07T22:32:45.054Z","repository":{"id":19612611,"uuid":"87469824","full_name":"owncloud/diagnostics","owner":"owncloud","description":":hospital: Collect request data and measure performance","archived":false,"fork":false,"pushed_at":"2025-12-06T00:19:07.000Z","size":549,"stargazers_count":4,"open_issues_count":10,"forks_count":6,"subscribers_count":44,"default_branch":"master","last_synced_at":"2025-12-09T14:14:52.920Z","etag":null,"topics":["owncloud-app"],"latest_commit_sha":null,"homepage":"","language":"Starlark","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/owncloud.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-04-06T20:02:03.000Z","updated_at":"2025-12-06T00:19:11.000Z","dependencies_parsed_at":"2024-03-25T07:25:20.327Z","dependency_job_id":"d92c0d0d-7aa8-46c7-873e-44947f7328e5","html_url":"https://github.com/owncloud/diagnostics","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/owncloud/diagnostics","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owncloud%2Fdiagnostics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owncloud%2Fdiagnostics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owncloud%2Fdiagnostics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owncloud%2Fdiagnostics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/owncloud","download_url":"https://codeload.github.com/owncloud/diagnostics/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owncloud%2Fdiagnostics/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29211127,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T22:22:11.602Z","status":"ssl_error","status_checked_at":"2026-02-07T22:22:10.684Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["owncloud-app"],"created_at":"2025-07-02T00:11:06.648Z","updated_at":"2026-02-07T22:32:45.039Z","avatar_url":"https://github.com/owncloud.png","language":"Starlark","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ownCloud Diagnostics\n:hospital:\n\n[![Build Status](https://drone.owncloud.com/api/badges/owncloud/diagnostics/status.svg?branch=master)](https://drone.owncloud.com/owncloud/diagnostics)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=owncloud_diagnostics\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=owncloud_diagnostics)\n[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=owncloud_diagnostics\u0026metric=security_rating)](https://sonarcloud.io/dashboard?id=owncloud_diagnostics)\n[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=owncloud_diagnostics\u0026metric=coverage)](https://sonarcloud.io/dashboard?id=owncloud_diagnostics)\n\n- [x] Support for 10.0\n- [x] Support for 9.1 - [on branch stable9](https://github.com/owncloud/diagnostics/tree/stable9)\n- [x] Support for 9.0 - [on branch stable9.1](https://github.com/owncloud/diagnostics/tree/stable9.1)\n\n**Versions for ownCloud 9.0 and 9.1 are limited and only work in debug mode and without user interface. For more features, please update your server version to 10.0**\n\nEnabling this ownCloud diagnostic module will result in collecting data about all queries and events in the system per request.\n\nIt will collect information about any type of the request to the server, summarize it and store in the form of log or in any other requested form (export to monitoring).\n\nModule allows to diagnose only selected users after their authentication or enabling collecting data globally for all users with \"debug mode\".\n\nYou can collect data from selected users not affecting performance of the system of other users (data wont be collected and logged).\n\n**By default, none of users is selected - to start logging please select user or allow collecting all data**\n\n![Demo Screen](/img/demo1.jpg?raw=true \"OwnCloud Diagnostics\")\n\n![Demo Screen](/img/demo2.jpg?raw=true \"OwnCloud Diagnostics\")\n\n# Default log location\n\nLog can be found in the folder `data/diagnostic.log`\n\n# Installation\n\nTo install, go to ```/apps``` in your ownCloud installation directory and ```git clone https://github.com/owncloud/diagnostics```. In the apps admin panel enable Diagnostics app.\n\n- To enable app using command line:\n\n`sudo -u www-data php occ app:enable diagnostics`\n\n\n- To enable [log levels](/lib/Diagnostics.php), e.g. \"SUMMARY\":\n\n`sudo -u www-data php occ config:app:set --value 1 diagnostics diagnosticLogLevel`\n\n\n- To enable logging after authentication of specific users using command line:\n\n`sudo -u www-data php occ config:app:set --value \"[\\\"test_shareMountInit\\\", \\\"admin\\\"]\" diagnostics diagnosedUsers`\n\n\n- To enable debug mode globally:\n\n`sudo -u www-data php occ config:system:set --value true debug`\n\n# Usage\n\nEach SUMMARY log if referencing EVENT and QUERY logs via `reqId`.\nThis allows to build full timeline of the events and corresponding queries for specific type of request e.g. \"PROPFIND\", only for selected users, as requests are coming.\n\n**Exemplary query log:**\n\n```\n{\n    \"type\":\"QUERY\",\n    \"reqId\":\"JaOvGavLZar0Idhpq5AE\",\n    \"diagnostics\":{\n        \"sqlStatement\":\"SELECT s.*, f.`fileid`, f.`path`, st.`id` AS `storage_string_id` FROM `oc_share` s LEFT JOIN `oc_filecache` f ON s.`file_source` = f.`fileid` LEFT JOIN `oc_storages` st ON f.`storage` = st.`numeric_id` WHERE (`share_type` = :dcValue1) AND (`share_with` IN (:dcValue2)) AND ((`item_type` = :dcValue3) OR (`item_type` = :dcValue4)) ORDER BY s.`id` ASC LIMIT 18446744073709551615 OFFSET 0\",\n        \"sqlParams\":\"array (   'dcValue1' =\u003e 1,   'dcValue2' =\u003e    array (     'admin' =\u003e 'admin',   ),   'dcValue3' =\u003e 'file',   'dcValue4' =\u003e 'folder', )\",\n        \"sqlQueryDurationmsec\":0.22697448730469,\n        \"sqlTimestamp\":1492690459.1778\n    }\n}\n```\n\n**Exemplary event log:**\n```\n{\n    \"type\":\"EVENT\",\n    \"reqId\":\"JaOvGavLZar0Idhpq5AE\",\n    \"diagnostics\": {\n        \"eventDescription\":\"Setup filesystem\",\n        \"eventDurationmsec\":5.1379203796387,\n        \"eventTimestamp\":1492690459.1743\n    }\n}\n```\n\n**Exemplary summary log:**\n\n```\n{\n    \"type\":\"SUMMARY\",\n    \"reqId\":\"x0GaTSDAElJ0lKtCj0Wb\",\n    \"time\":\"2017-04-20T12:14:20+00:00\",\n    \"remoteAddr\":\"127.0.0.1\",\n    \"user\":\"admin\",\n    \"method\":\"PROPFIND\",\n    \"url\":\"\\/owncloudtest\\/remote.php\\/webdav\\/\",\n    \"diagnostics\":{\n        \"totalSQLQueries\":19,\n        \"totalSQLDurationmsec\":2.1142959594727,\n        \"totalSQLParams\":45,\n        \"totalEvents\":9,\n        \"totalEventsDurationmsec\":5.9356689453125\n    }\n}\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fowncloud%2Fdiagnostics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fowncloud%2Fdiagnostics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fowncloud%2Fdiagnostics/lists"}