{"id":37024290,"url":"https://github.com/klcodanr/slingcms-loganalytics-plugin","last_synced_at":"2026-01-14T02:56:08.404Z","repository":{"id":40818051,"uuid":"278767333","full_name":"klcodanr/slingcms-loganalytics-plugin","owner":"klcodanr","description":"A plugin to enable basic analytics via log reading in the Apache Sling CMS.","archived":false,"fork":false,"pushed_at":"2022-12-06T13:24:19.000Z","size":13082,"stargazers_count":0,"open_issues_count":11,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-06T14:49:43.841Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/klcodanr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-11T01:44:22.000Z","updated_at":"2020-10-23T13:44:17.000Z","dependencies_parsed_at":"2022-09-15T04:50:35.445Z","dependency_job_id":null,"html_url":"https://github.com/klcodanr/slingcms-loganalytics-plugin","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/klcodanr/slingcms-loganalytics-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klcodanr%2Fslingcms-loganalytics-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klcodanr%2Fslingcms-loganalytics-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klcodanr%2Fslingcms-loganalytics-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klcodanr%2Fslingcms-loganalytics-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/klcodanr","download_url":"https://codeload.github.com/klcodanr/slingcms-loganalytics-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klcodanr%2Fslingcms-loganalytics-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408798,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2026-01-14T02:56:07.640Z","updated_at":"2026-01-14T02:56:08.394Z","avatar_url":"https://github.com/klcodanr.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!--\n * Copyright (C) 2020 Dan Klco\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n --\u003e\n\n[![CircleCI](https://circleci.com/gh/klcodanr/slingcms-loganalytics-plugin.svg?style=svg)](https://circleci.com/gh/klcodanr/slingcms-loganalytics-plugin)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=slingcms-loganalytics-plugin\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=slingcms-loganalytics-plugin)\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/18ff3b2fb86045c7b8fdf1fa17dc5e4c)](https://www.codacy.com/manual/klcodanr/slingcms-loganalytics-plugin?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=klcodanr/slingcms-loganalytics-plugin\u0026amp;utm_campaign=Badge_Grade)\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0)\n\n# Apache Sling CMS- Log Analytics Plugin\n\nA plugin to enable basic analytics via log reading in the\n[Apache Sling CMS](https://github.com/apache/org-apache-sling-app-cms).\n\n## Installation\n\nDownload the [build the code](#building) or latest release and install it into an\nApache Sling CMS instance via the OSGi console at {sling_cms_host}/system/console/bundles.\n\nA new log will be created for this, fullrequest.log, which will be used for analysis.\n\n## Use\n\nReports can be found at Tools \u003e Log Analytics. To view a report, click on the report name. To edit the report click the pencil.\n\n![Reports Console](docs/View-Reports.png)\n\n### Filters\n\nEach report has a global filter, which can be pre-populated based on [Filtrex expressions](https://github.com/joewalnes/filtrex) against the following variables:\n\n- time\n- responseTime\n- responseSize\n- status\n- refererPath\n- refererHost\n- language\n- method\n- path\n- protocol\n- host\n- userAgent\n- contentType\n- user\n- sessionId\n- referer\n- platform\n- remoteHost\n- queryString\n- postalCode\n- regionCode\n- countryCode\n- forwardedFor\n- browser\n- browserType\n- browserMajorVersion\n- deviceType\n- platformVersion\n- resolvedPath\n- resolvedIp\n\nTo filter the requests for the report, for example:\n\n\t{\n\t\"time\": 1594422239000,\n\t\"responseTime\": 2,\n\t\"responseSize\": 0,\n\t\"status\": 200,\n\t\"refererPath\": \"\",\n\t\"refererHost\": \"\",\n\t\"language\": \"en-US\",\n\t\"method\": \"GET\",\n\t\"path\": \"/static/clientlibs/sling-cms/js/wysihtml.toolbar.min.map\",\n\t\"protocol\": \"HTTP/1.1\",\n\t\"host\": \"localhost:8080\",\n\t\"userAgent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36\",\n\t\"contentType\": \"application/json;charset=UTF-8\",\n\t\"user\": \"admin\",\n\t\"sessionId\": \"node0rs0lrzicp3901q4ov5v3cst8y0.node0\",\n\t\"referer\": \"-\",\n\t\"platform\": \"macOS\",\n\t\"remoteHost\": \"0:0:0:0:0:0:0:1\",\n\t\"queryString\": \"\",\n\t\"postalCode\": \"\",\n\t\"regionCode\": \"\",\n\t\"countryCode\": \"\",\n\t\"forwardedFor\": \"-\",\n\t\"browser\": \"Chrome\",\n\t\"browserType\": \"Browser\",\n\t\"browserMajorVersion\": \"83\",\n\t\"deviceType\": \"Desktop\",\n\t\"platformVersion\": \"10.14\",\n\t\"resolvedPath\": \"/static/clientlibs/sling-cms/js/wysihtml.toolbar.min.map\",\n\t\"resolvedIp\": \"0:0:0:0:0:0:0:1\"\n\t}\n\nEach report item also has a filter which can be set to limit the requests for that report. All filters can be defaulted in the edit mode and overriden / changed when viewing the report.\n\n### Report Visualizations\n\nThere are four report visualizations which can be added and configured in the report:\n\n#### Timeseries\n\nDisplays requests over time.\n\n![TimeSeries Report](docs/Timeseries.png)\n\n#### Grouped Table\n\nShows the number of requests per a value of one or more fields.\n\n![Grouped Table](docs/Grouped-Table.png)\n\n#### Pie Chart\n\nShows the percentage of requests per a value of one or more fields.\n\n![Pie Chart](docs/Pie-Chart.png)\n\n#### Bar Chart\n\nShows the percentage of requests per a value of one or more fields.\n\n![Bar Chart](docs/Bar-Chart.png)\n\n## Building\n\nThis project requires Apache Maven 3 and Java JDK8. To build the project run:\n\n`mvn clean install`\n\nTo install the bundle into a local Sling CMS instance running on port 8080, run:\n\n`mvn clean install -P autoInstallBundle`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklcodanr%2Fslingcms-loganalytics-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fklcodanr%2Fslingcms-loganalytics-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklcodanr%2Fslingcms-loganalytics-plugin/lists"}