{"id":25343860,"url":"https://github.com/appscode-cloud/nats-logger","last_synced_at":"2025-10-26T00:48:30.771Z","repository":{"id":65496263,"uuid":"581479315","full_name":"appscode-cloud/nats-logger","owner":"appscode-cloud","description":null,"archived":false,"fork":false,"pushed_at":"2025-08-15T04:55:54.000Z","size":3362,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-15T06:26:19.189Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/appscode-cloud.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":"2022-12-23T10:00:39.000Z","updated_at":"2025-02-15T07:00:30.000Z","dependencies_parsed_at":"2023-11-30T06:28:42.108Z","dependency_job_id":"51819c86-0fa2-4892-9994-c25ec2187511","html_url":"https://github.com/appscode-cloud/nats-logger","commit_stats":null,"previous_names":["tamalsaha/ssh-exec-demo","appscode-cloud/nats-logger"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/appscode-cloud/nats-logger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appscode-cloud%2Fnats-logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appscode-cloud%2Fnats-logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appscode-cloud%2Fnats-logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appscode-cloud%2Fnats-logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/appscode-cloud","download_url":"https://codeload.github.com/appscode-cloud/nats-logger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appscode-cloud%2Fnats-logger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281043416,"owners_count":26434444,"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","status":"online","status_checked_at":"2025-10-25T02:00:06.499Z","response_time":81,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-02-14T10:59:10.088Z","updated_at":"2025-10-26T00:48:30.727Z","avatar_url":"https://github.com/appscode-cloud.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ssh-exec-demo\n\n## GIST\n\n- https://gist.github.com/tamalsaha/8ad260a679bcd65d21d52fa709171af3\n\n## Full Demo\n\n1. Starts a new server using a Stackscript\n2. Stackscript logs to a file\n3. Stackscript log is passed back to the user via nats\n4. Stackscript status and log are copied via scp\n\n```\n\u003e go run scp-demo/*.go\n```\n\n## Step 1: Listen for Logs\n\n```\nnats -s this-is-nats.appscode.ninja --user=$THIS_IS_NATS_USERNAME --password=$THIS_IS_NATS_PASSWORD sub stackscript-log\n```\n\n## Step 2: Run script\n\n```\n./script.sh\n```\n\n## Send Logs via NATS (used in stackscript)\n\n```\nSHIPPER_FILE=/tmp/stackscript.log \\\n  SHIPPER_SUBJECT=stackscript-log \\\n  go run nats-logger/main.go\n```\n\n## NATS example\n\n```\nnats -s this-is-nats.appscode.ninja --user=$THIS_IS_NATS_USERNAME --password=$THIS_IS_NATS_PASSWORD sub stackscript-log\n\nnats -s this-is-nats.appscode.ninja --user=$THIS_IS_NATS_USERNAME --password=$THIS_IS_NATS_PASSWORD pub hello tamal\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappscode-cloud%2Fnats-logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fappscode-cloud%2Fnats-logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappscode-cloud%2Fnats-logger/lists"}