{"id":15641880,"url":"https://github.com/pnc/syslog-wrapper","last_synced_at":"2025-03-29T22:14:01.715Z","repository":{"id":66309486,"uuid":"531961140","full_name":"pnc/syslog-wrapper","owner":"pnc","description":"Capture a process's stdout and stderr and securely forward them to a remote syslog host. Nothing else.","archived":false,"fork":false,"pushed_at":"2023-05-24T02:53:00.000Z","size":26,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-04T22:53:54.623Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/pnc.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2022-09-02T14:35:16.000Z","updated_at":"2022-09-02T14:36:25.000Z","dependencies_parsed_at":"2023-05-24T10:00:19.446Z","dependency_job_id":null,"html_url":"https://github.com/pnc/syslog-wrapper","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pnc%2Fsyslog-wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pnc%2Fsyslog-wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pnc%2Fsyslog-wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pnc%2Fsyslog-wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pnc","download_url":"https://codeload.github.com/pnc/syslog-wrapper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246249219,"owners_count":20747168,"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":[],"created_at":"2024-10-03T11:52:58.825Z","updated_at":"2025-03-29T22:14:01.301Z","avatar_url":"https://github.com/pnc.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# syslog-wrapper\n\nBoring name, boring tool:\n\n1. Run a subprocess,\n2. collect its standard output and standard error,\n3. and forward those to an RFC 5425-compliant remote syslog host.\n\nThat means you can send a list of numbers directly to Papertrail with:\n\n```bash\nSYSLOG_HOSTNAME=pleasant-cornfield-5 cargo run logs2.papertrailapp.com:48001 -- seq 1 5\n```\n\nand they'll show up like this:\n\n```\nSep 02 17:12:07 precarious-tuft-41 seq 1\nSep 02 17:12:07 precarious-tuft-41 seq 2\nSep 02 17:12:07 precarious-tuft-41 seq 3\nSep 02 17:12:07 precarious-tuft-41 seq 4\nSep 02 17:12:07 precarious-tuft-41 seq 5\n```\n\nIn more practical usage, you might wrap a Docker process like so:\n\n```bash\nexport SYSLOG_HOSTNAME=precarious-tuft-41\nexport SYSLOG_APPNAME=carriage-cobbler\nexport SYSLOG_SERVER=logs2.papertrailapp.com:48001\nsyslog-wrapper ./bin/cobble\n```\n\n## Recommended development environment\n\n1. Install `rustup`\n2. Add `rust-analyzer` extension to VS Code\n\n## Run tests\n\n`cargo test`\n\n## Run for interactive testing\n\n`SYSLOG_HOSTNAME=dingdong cargo run logs2.papertrailapp.com:48001 -- seq 1 5`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpnc%2Fsyslog-wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpnc%2Fsyslog-wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpnc%2Fsyslog-wrapper/lists"}