{"id":19040871,"url":"https://github.com/cloudfoundry/blackbox","last_synced_at":"2025-04-23T21:24:11.698Z","repository":{"id":31230207,"uuid":"127007187","full_name":"cloudfoundry/blackbox","owner":"cloudfoundry","description":"Forward logs from files on windows and linux.","archived":false,"fork":false,"pushed_at":"2025-04-20T18:23:14.000Z","size":7391,"stargazers_count":6,"open_issues_count":6,"forks_count":11,"subscribers_count":16,"default_branch":"main","last_synced_at":"2025-04-20T19:28:57.981Z","etag":null,"topics":["file-forwarding","logging","syslog"],"latest_commit_sha":null,"homepage":"","language":"Go","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/cloudfoundry.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,"zenodo":null}},"created_at":"2018-03-27T15:23:31.000Z","updated_at":"2025-04-19T22:59:40.000Z","dependencies_parsed_at":"2024-03-25T18:02:31.002Z","dependency_job_id":"4137581f-b17f-4147-b189-17ce2a3d0925","html_url":"https://github.com/cloudfoundry/blackbox","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry%2Fblackbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry%2Fblackbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry%2Fblackbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry%2Fblackbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudfoundry","download_url":"https://codeload.github.com/cloudfoundry/blackbox/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250515726,"owners_count":21443478,"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":["file-forwarding","logging","syslog"],"created_at":"2024-11-08T22:25:51.404Z","updated_at":"2025-04-23T21:24:11.674Z","avatar_url":"https://github.com/cloudfoundry.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# blackbox\nIf you have any questions, or want to get attention for a PR or issue please reach out on the [#logging-and-metrics channel in the cloudfoundry slack](https://cloudfoundry.slack.com/archives/CUW93AF3M)\n\n## About\nBlackbox will tail all files in sub-directories of a specified `source_dir`, and forward any new lines to a syslog server.\n\nThis is currently used in [syslog-release][syslog] and [windows-syslog-release][windows-syslog]. \n## Usage\n\n```\nblackbox -config config.yml\n```\n\nThe configuration file schema is as follows:\n\n``` yaml\nhostname: this-host\n\nsyslog:\n  destination:\n    transport: udp\n    address: logs.example.com:1234\n\n  source_dir: /path/to/log-dir\n  log_filename: false\n```\n\nConsider the case where `log-dir` has the following structure:\n\n```\n/path/to/log-dir\n|-- app1\n|   |-- stdout.log\n|   `-- stderr.log\n`-- app2\n    |-- foo.log\n    `-- bar.log\n```\n\nAny new lines written to `app1/stdout.log` and `app1/stderr.log` get sent to syslog tagged as `app1`, while new lines written to `app2/foo.log` and `app2/bar.log` get sent to syslog tagged as `app2`.\n\nIf `log_filename` is set to `true` then the filename is included in the tag. For example, new lines written to `app1/stdout.log` get sent to syslog tagged as `app1/stdout.log`.\n\nCurrently, the priority and facility are hardcoded to `INFO` and `user`.\n\n## Installation\n\n```\ngo get -u code.cloudfoundry.org/blackbox/cmd/blackbox\n```\n\n[windows-syslog]: https://github.com/cloudfoundry/windows-syslog-release\n[syslog]: https://github.com/cloudfoundry/syslog-release\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudfoundry%2Fblackbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudfoundry%2Fblackbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudfoundry%2Fblackbox/lists"}