{"id":13807238,"url":"https://github.com/uber/kafka-logger","last_synced_at":"2025-05-14T00:31:07.068Z","repository":{"id":21904942,"uuid":"25228957","full_name":"uber/kafka-logger","owner":"uber","description":"A kafka logger for winston","archived":true,"fork":false,"pushed_at":"2018-10-11T17:52:42.000Z","size":76,"stargazers_count":45,"open_issues_count":4,"forks_count":11,"subscribers_count":2703,"default_branch":"master","last_synced_at":"2025-05-02T10:03:06.552Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/uber.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":"2014-10-14T22:14:53.000Z","updated_at":"2023-07-11T14:01:53.000Z","dependencies_parsed_at":"2022-08-05T14:15:50.222Z","dependency_job_id":null,"html_url":"https://github.com/uber/kafka-logger","commit_stats":null,"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uber%2Fkafka-logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uber%2Fkafka-logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uber%2Fkafka-logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uber%2Fkafka-logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uber","download_url":"https://codeload.github.com/uber/kafka-logger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253900616,"owners_count":21981273,"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-08-04T01:01:23.031Z","updated_at":"2025-05-14T00:31:02.046Z","avatar_url":"https://github.com/uber.png","language":"JavaScript","funding_links":[],"categories":["Data Ingestion"],"sub_categories":[],"readme":"# kafka-logger\n\nA [kafka](http://kafka.apache.org/) transport for [winston](https://github.com/winstonjs/winston)\n\n## Usage\n\n```js\nvar winston = require('winston');\n\nwinston.transports.Kafka = require('kafka-logger');\n\nwinston.add(winston.transports.Kafka, options);\n```\n\nThe Kafka transport currently uses [node-kafka-rest-client](). The Kafka transport takes the following options:\n\n* `topic` - The Kafka topic to publish to.\n* `proxyHost` - The Kafka REST Proxy host to publish to.\n* `proxyPort` - The Kafka REST Proxy port to publish to.\n* `properties` - Top-level properties that should be added to the JSON object published to the kafka topic; useful if multiple processes use the same topic\n* `dateFormats` - An object of date formats to use; keys are the names of the keys the format should be added to, values are the names of the formats (useful for cross-language usage of the logs to reduce transforms on the consumers). These formats are: `epoch` (time in sec since Jan 1, 1970), `jsepoch` (time in ms since Jan 1, 1970), `pyepoch` (time in sec since Jan 1, 1970, but floating point with ms resolution), `iso` (ISO datestring format)\n\n## Install\n\n```sh\nnpm install winston kafka-logger\n```\n\n## Testing\n\n```sh\nnpm test\n```\n\nThere is a `kafka.js` that will talk to kafka if it is running and just\n    gets skipped if its not running.\n\nTo run kafka run zookeeper \u0026 kafka with `npm run start-zk` and\n    `npm run start-kafka`\n\n## MIT Licenced\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuber%2Fkafka-logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuber%2Fkafka-logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuber%2Fkafka-logger/lists"}