{"id":19002328,"url":"https://github.com/rainu/mqtt-logger","last_synced_at":"2026-05-05T11:34:56.143Z","repository":{"id":59047156,"uuid":"330175841","full_name":"rainu/mqtt-logger","owner":"rainu","description":"A simple MQTT client written in go that subscribes to a configurable list of MQTT topics on the specified broker  and logs the whole payload to stdout.","archived":false,"fork":false,"pushed_at":"2021-01-16T18:32:05.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-02-21T13:43:22.220Z","etag":null,"topics":["binary","docker-image","golang","logging","mqtt","mqtt-logger"],"latest_commit_sha":null,"homepage":"","language":"Go","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/rainu.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}},"created_at":"2021-01-16T14:03:37.000Z","updated_at":"2021-01-17T14:33:26.000Z","dependencies_parsed_at":"2022-09-11T06:51:31.564Z","dependency_job_id":null,"html_url":"https://github.com/rainu/mqtt-logger","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/rainu/mqtt-logger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rainu%2Fmqtt-logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rainu%2Fmqtt-logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rainu%2Fmqtt-logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rainu%2Fmqtt-logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rainu","download_url":"https://codeload.github.com/rainu/mqtt-logger/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rainu%2Fmqtt-logger/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266499015,"owners_count":23938771,"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-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["binary","docker-image","golang","logging","mqtt","mqtt-logger"],"created_at":"2024-11-08T18:14:39.649Z","updated_at":"2026-05-05T11:34:51.115Z","avatar_url":"https://github.com/rainu.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mqtt-logger\n\nA simple MQTT client written in go that subscribes to a configurable list of MQTT topics on the specified broker \nand logs the whole payload to stdout.\n\n# Get the Binary\nYou can build it on your own (you will need [golang](https://golang.org/) installed):\n```bash\ngo build -a -installsuffix cgo ./cmd/mqtt-logger/\n```\n\nOr you can download the release binaries: [here](https://github.com/rainu/mqtt-logger/releases/latest)\n\n## Running\n\nConfiguration is taken from the environment or via arguments, for example:\n\n```bash\nexport MQTT_BROKER_ADDRESS=\"tcp://localhost:1883\"\nexport MQTT_USERNAME=\"foo\"\nexport MQTT_PASSWORD=\"bar\"\n\n./mqtt-logger\n```\nor\n```bash\n./mqtt-logger --broker \"tcp://localhost:1883\" --user \"foo\" --password \"bar\"\n```\n\n### Available Environment/Arguments\n\n|Argument|Environment|Default|Description|\n|--------|-----------|-------|-----------|\n|--topic|MQTT_TOPICS| # |List of the mqtt topics to subscribe to.|\n|--blacklist|MQTT_TOPIC_BLACKLIST| |List of regular expression.|\n|--broker|MQTT_BROKER_ADDRESS|  |The mqtt broker address.|\n|--user|MQTT_USERNAME|  |The mqtt username.|\n|--password|MQTT_PASSWORD|  |The mqtt password.|\n|--timeout|MQTT_TIMEOUT| 1m |The timeout for the mqtt connection.|\n|--ca-cert|MQTT_CA_CERT|  |The path of the CA-Cert file for secure mqtt connection.|\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frainu%2Fmqtt-logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frainu%2Fmqtt-logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frainu%2Fmqtt-logger/lists"}