{"id":20523361,"url":"https://github.com/niceguyit/synology_abfb_log_parser","last_synced_at":"2026-02-09T00:02:30.641Z","repository":{"id":64637328,"uuid":"576948623","full_name":"NiceGuyIT/synology_abfb_log_parser","owner":"NiceGuyIT","description":"Synology Active Backup for Business log parser","archived":false,"fork":false,"pushed_at":"2024-05-05T19:05:34.000Z","size":65,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-20T23:15:57.222Z","etag":null,"topics":["activebackup","python3","synology"],"latest_commit_sha":null,"homepage":"","language":"Python","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/NiceGuyIT.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2022-12-11T14:08:23.000Z","updated_at":"2024-05-05T19:04:08.000Z","dependencies_parsed_at":"2024-11-15T22:39:26.613Z","dependency_job_id":"28f801c2-ef8e-47db-9eb5-406afb947389","html_url":"https://github.com/NiceGuyIT/synology_abfb_log_parser","commit_stats":{"total_commits":18,"total_committers":1,"mean_commits":18.0,"dds":0.0,"last_synced_commit":"68b69a2a3018b8cab4463bb109597221b51f8b4d"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NiceGuyIT%2Fsynology_abfb_log_parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NiceGuyIT%2Fsynology_abfb_log_parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NiceGuyIT%2Fsynology_abfb_log_parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NiceGuyIT%2Fsynology_abfb_log_parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NiceGuyIT","download_url":"https://codeload.github.com/NiceGuyIT/synology_abfb_log_parser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248813796,"owners_count":21165634,"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":["activebackup","python3","synology"],"created_at":"2024-11-15T22:39:16.116Z","updated_at":"2026-02-09T00:02:30.583Z","avatar_url":"https://github.com/NiceGuyIT.png","language":"Python","readme":"# Synology Active Backups for Business log parser\n\n`synology_abfb_log_parser` parses the [Synology Active Backups for Business][1] logs on the agent allowing and provides a way to search the logs. The examples show how to send a TRMM alert for various log entries.\n\n[1]: https://kb.synology.com/en-br/DSM/help/ActiveBackup/activebackup_business_activities?version=7\n\n## Events\n\nEvents have the following structure. Given this log entry:\n```text\nNov 25 22:12:34 [INFO] async-worker.cpp (56): Worker (0): get event '1: routine {\"subaction\": \"heart_beat\"}', start processing\n```\n\nThe events returned will be like this:\n```Python\nevents[0] = {\n    \"datetime\": \"datestamp.datestamp class\",\n    \"timestamp\": \"Nov 25 22:12:34\",\n    \"priority\": \"INFO\",\n    \"method_name\": \"async-worker.cpp\",\n    \"method_num\": \"56\",\n    \"message\": \"Worker (0): get event '1: routine {\\\"subaction\\\": \\\"heart_beat\\\"}', start processing\",\n    \"json\": {\n        \"subaction\": \"heart_beat\"\n    },\n}\n```\n\nA simple script to print all ERRORs in the last 3 hours.\n```Python\nimport datetime\nimport synology_abfb_log_parser\n\nafter = datetime.timedelta(**{\"hours\": 3})\nfind = {\n    'priority': 'ERROR',\n}\nsynology = synology_abfb_log_parser.abfb_log_parser.ActiveBackupLogParser(\n    after=after,\n)\nsynology.load()\nfound = synology.search(find=find)\nprint(found)\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniceguyit%2Fsynology_abfb_log_parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fniceguyit%2Fsynology_abfb_log_parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniceguyit%2Fsynology_abfb_log_parser/lists"}