{"id":34235457,"url":"https://github.com/phpple/filetailer","last_synced_at":"2026-03-13T15:30:38.338Z","repository":{"id":64308090,"uuid":"381687784","full_name":"phpple/filetailer","owner":"phpple","description":"A tool of monitoring error log and sending notify by dingtalk.","archived":false,"fork":false,"pushed_at":"2021-07-22T11:52:55.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-19T08:28:48.094Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/phpple.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}},"created_at":"2021-06-30T12:03:24.000Z","updated_at":"2021-07-22T11:52:18.000Z","dependencies_parsed_at":"2023-01-15T11:15:35.673Z","dependency_job_id":null,"html_url":"https://github.com/phpple/filetailer","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/phpple/filetailer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpple%2Ffiletailer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpple%2Ffiletailer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpple%2Ffiletailer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpple%2Ffiletailer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phpple","download_url":"https://codeload.github.com/phpple/filetailer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpple%2Ffiletailer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30469312,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-13T11:00:43.441Z","status":"ssl_error","status_checked_at":"2026-03-13T11:00:23.173Z","response_time":60,"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":[],"created_at":"2025-12-16T02:20:00.323Z","updated_at":"2026-03-13T15:30:37.698Z","avatar_url":"https://github.com/phpple.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"FileTailer\r\n==========\r\n\r\nA tool of monitoring error log and sending notify by dingtalk.\r\n\r\nUsage\r\n------\r\n\r\n```\r\n./filetailer\r\n```\r\n\r\nThe configuration file named config.yml must place in the same directory.\r\n\r\nBasic Configuration\r\n-------------------\r\n\r\n```yaml\r\nwatchers:\r\n  - paths:\r\n      - \"./debug.log\"\r\n      - \"./debug2.log\"\r\n    # 匹配一行开始的模式\r\n    pattern: \"^\\\\d{4}\\\\-\\\\d{2}\\\\-\\\\d{2} \\\\d{2}\\\\:\\\\d{2}\\\\:\\\\d{2},\\\\d{3} \"\r\n    rules:\r\n      - cause: any     # 任意内容均允许展示\r\n  - paths:\r\n      - \"./nginx.access.log\"\r\n    pattern: \"\\\\[\\\\d{2}\\\\/[a-zA-Z]{3}\\\\/\\\\d{4}\\\\:\\\\d{2}\\\\:\\\\d{2}\\\\:\\\\d{2} +\\\\d{4}\\\\]\"\r\n    rules:\r\n      - seperator: \" \"            # 匹配内容分隔符\r\n        expression: \"{print $9}\"  # awk表达式\r\n        cause: eq                 # awk表达式的内容和values的比较条件，包括eq、gt等\r\n        # 对awk表达式出来的内容进行比较的具体值，符合其中任意一项则认为匹配上了，会允许通知\r\n        values:\r\n          - \"500\"\r\n          #- \"502\"\r\n          - \"504\"\r\n        msg: \"服务端错误:\\n\u003e %s\"\r\nnotifiers:\r\n  default: dingding    # 默认的notifier\r\n  list:\r\n    - key: dingding    # notifier的名称\r\n      type: dingtalk   # 类型\r\n      option:\r\n        tokens:        # 钉钉机器人token，可以配置多个\r\n        - xxxxxxxxxxxxxxxxxxxxxxxxxxxxx\r\n      keyword: ERROR   # 关键词\r\n      maxline: 4       # 最多显示的内容行数\r\n      maxchar: 200     # 每行显示的最大字符数（第1行和最后1行不在此限制）\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphpple%2Ffiletailer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphpple%2Ffiletailer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphpple%2Ffiletailer/lists"}