{"id":27118406,"url":"https://github.com/suconghou/fedlogserver","last_synced_at":"2025-06-13T15:07:07.385Z","repository":{"id":38445502,"uuid":"150535609","full_name":"suconghou/fedlogserver","owner":"suconghou","description":"collect frontend logs and errors into mongodb with websocket","archived":false,"fork":false,"pushed_at":"2025-02-23T15:25:28.000Z","size":251,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-12T22:17:51.037Z","etag":null,"topics":["actix-web","mongodb","rust","websocket"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/suconghou.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-09-27T05:54:35.000Z","updated_at":"2025-02-23T15:25:31.000Z","dependencies_parsed_at":"2022-08-09T04:16:39.404Z","dependency_job_id":"5ff1f9a3-7f2b-4efe-aa08-c884ca3c4b23","html_url":"https://github.com/suconghou/fedlogserver","commit_stats":null,"previous_names":["suconghou/fedreport"],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suconghou%2Ffedlogserver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suconghou%2Ffedlogserver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suconghou%2Ffedlogserver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suconghou%2Ffedlogserver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/suconghou","download_url":"https://codeload.github.com/suconghou/fedlogserver/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247615474,"owners_count":20967183,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["actix-web","mongodb","rust","websocket"],"created_at":"2025-04-07T07:57:45.078Z","updated_at":"2025-04-07T07:57:45.469Z","avatar_url":"https://github.com/suconghou.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n## 环境变量\n\n\u003e ADDR  默认值 127.0.0.1:8080\n\u003e\n\u003e MONGODB_URI\n\u003e \n\u003e MONGODB_DATABASE\n\u003e \n\u003e AUTH_KEY , 如果有值则启用ws和aggregate接口鉴权\n\u003e\n\n配置 `MONGODB_URI` 和 `MONGODB_DATABASE`后，开启db功能\n\n```bash\nexport MONGODB_URI='mongodb://192.168.0.3/test?authSource=admin\u0026appName=ws' MONGODB_DATABASE=\"test\"\n```\n\n## 查询\n\n**特殊的键**\n\n以`$`开头的键有特殊含义\n\n$gt 开始时间，秒\n\n$lt 结束时间，秒\n\n$count 计数模式，统计符合结果的条数，此键的值作为下标\n\n$group 分组模式，值为`$`开头的字段，统计此字段的分组，不是`$`开头效果等同于`$count`，可以使用包含`%`的时间表示按照时间分组，例如：`%m-%d %H`\n\n$sort 对结果按照字段排序，当值是`$`开头则为升序，否则为降序\n\n$limit 限制返回的大小，值应为数字，区间1-1000\n\n$skip 跳过多少条数据，值应为数字，区间1-1000\n\n**特殊的值**\n\n$exists 代表添加过滤条件，此键必须存在\n\n\u003e 如果值为空（key不是以`$`开头），代表添加过滤条件，此键不存在\n\n$addToSet 分组模式下有效，代表分组时需要附加收集的键值\n\n$project 代表响应数据需要保留此字段，键以`$`开头为保留，否则不保留\n\n其他不以`$`开头的键值对，表示普通过滤条件，等值匹配\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuconghou%2Ffedlogserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuconghou%2Ffedlogserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuconghou%2Ffedlogserver/lists"}