{"id":16347708,"url":"https://github.com/oscarotero/analogger","last_synced_at":"2026-04-26T22:31:13.763Z","repository":{"id":62422405,"uuid":"425589302","full_name":"oscarotero/analogger","owner":"oscarotero","description":"Deno library to consume access logs files and generate reports","archived":false,"fork":false,"pushed_at":"2023-11-23T19:42:15.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-03T23:52:23.074Z","etag":null,"topics":["analytics","deno","logs"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oscarotero.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}},"created_at":"2021-11-07T18:53:50.000Z","updated_at":"2021-11-25T18:20:27.000Z","dependencies_parsed_at":"2024-11-20T21:15:19.088Z","dependency_job_id":null,"html_url":"https://github.com/oscarotero/analogger","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/oscarotero/analogger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oscarotero%2Fanalogger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oscarotero%2Fanalogger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oscarotero%2Fanalogger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oscarotero%2Fanalogger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oscarotero","download_url":"https://codeload.github.com/oscarotero/analogger/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oscarotero%2Fanalogger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32315711,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T21:09:39.134Z","status":"ssl_error","status_checked_at":"2026-04-26T21:09:21.240Z","response_time":129,"last_error":"SSL_read: 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":["analytics","deno","logs"],"created_at":"2024-10-11T00:45:04.836Z","updated_at":"2026-04-26T22:31:13.744Z","avatar_url":"https://github.com/oscarotero.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- deno-fmt-ignore-file --\u003e\n\n# Analogger\n\nThis is a simple [Deno](https://deno.land/) library to consume access logs\ngenerated by nginx/apache and generate reports about visits, sessions, etc.\n\nIt's divided in two scopes:\n\n- **Transformers:** to parse, transform and enrich the data from log files.\n- **Reporters:** to generate reports of this data.\n\n## Example\n\n```ts\nimport {\n  read,\n  show,\n  reports,\n  transform,\n  transformers as t\n} from \"https://deno.land/x/analogger/mod.ts\";\n\n// Step 1: Read the log file.\nconst logs = read(\"./access.log\");\n\n// Step 2: Parse and transform the logs:\nconst result = await transform(\n  logs,\n  t.parse(),                             // Parse the data.\n  t.filterByExtensions([\".html\", \"\"]),   // Filter by .html extensions or not extension at all.\n  t.filter((log) =\u003e log.status === 200), // Get only requests generating a 200 status code response.\n  t.isBot(),                             // Add the `isBot` property indicating if the request is from a bot (ex: Google).\n  t.filter((log) =\u003e !log.isBot),         // Discard request from bots\n  t.parseUserAgent(),                    // Parse the user-agent info\n  t.sessionId(),                         // Add the `sessionId` property with an autogenerated session id\n  t.searchEngine(),                      // Add the `searchEngine` property (google, bing, yahoo...)\n  t.socialNetwork(),                     // Add the `socialNetwork` property (facebook, twitter, instagram...)\n);\n\n// Step 3: Generate reports with this data.\n// For example, the number of sessions by month:\nconst report = reports.sessions(result, \"monthly\");\n\n// Step 3: See the report in your browser\nawait show(report);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foscarotero%2Fanalogger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foscarotero%2Fanalogger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foscarotero%2Fanalogger/lists"}