{"id":26930213,"url":"https://github.com/dial-once/node-logtify-logstash","last_synced_at":"2025-10-10T05:39:26.429Z","repository":{"id":57290648,"uuid":"92187453","full_name":"dial-once/node-logtify-logstash","owner":"dial-once","description":"Logstash chain link for logtify logger","archived":false,"fork":false,"pushed_at":"2018-11-22T10:36:39.000Z","size":47,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":8,"default_branch":"develop","last_synced_at":"2025-10-10T05:39:22.885Z","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/dial-once.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":"2017-05-23T15:13:09.000Z","updated_at":"2018-10-27T10:07:11.000Z","dependencies_parsed_at":"2022-08-28T07:00:15.783Z","dependency_job_id":null,"html_url":"https://github.com/dial-once/node-logtify-logstash","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/dial-once/node-logtify-logstash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dial-once%2Fnode-logtify-logstash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dial-once%2Fnode-logtify-logstash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dial-once%2Fnode-logtify-logstash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dial-once%2Fnode-logtify-logstash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dial-once","download_url":"https://codeload.github.com/dial-once/node-logtify-logstash/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dial-once%2Fnode-logtify-logstash/sbom","scorecard":{"id":340689,"data":{"date":"2025-08-11","repo":{"name":"github.com/dial-once/node-logtify-logstash","commit":"213f0c0107464964cd7d56b0ae0906ca42ba9dc3"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":5,"reason":"Found 6/12 approved changesets -- score normalized to 5","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 17 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"38 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-9vvw-cc9w-f27h","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-h6ch-v84p-w6p9","Warn: Project is vulnerable to: GHSA-4gmj-3p3h-gm8h","Warn: Project is vulnerable to: GHSA-qh2h-chj9-jffq","Warn: Project is vulnerable to: GHSA-q42p-pg8m-cqh6","Warn: Project is vulnerable to: GHSA-w457-6q6x-cgp9","Warn: Project is vulnerable to: GHSA-62gr-4qp9-h98f","Warn: Project is vulnerable to: GHSA-f52g-6jhx-586p","Warn: Project is vulnerable to: GHSA-2cf5-4w76-r9qv","Warn: Project is vulnerable to: GHSA-3cqr-58rm-57f8","Warn: Project is vulnerable to: GHSA-g9r4-xpmj-mj65","Warn: Project is vulnerable to: GHSA-q2c6-c6pm-g3gh","Warn: Project is vulnerable to: GHSA-765h-qjxv-5f44","Warn: Project is vulnerable to: GHSA-f2jv-r9rf-7988","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-4hpf-3wq7-5rpr","Warn: Project is vulnerable to: GHSA-f522-ffg8-j8r6","Warn: Project is vulnerable to: GHSA-2pr6-76vf-7546","Warn: Project is vulnerable to: GHSA-8j8c-7jfh-h6hx","Warn: Project is vulnerable to: GHSA-282f-qqgm-c34q","Warn: Project is vulnerable to: GHSA-fvqr-27wr-82fm","Warn: Project is vulnerable to: GHSA-4xc9-xhrj-v574","Warn: Project is vulnerable to: GHSA-x5rq-j2xg-h7qm","Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-w9mr-4mfr-499f","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-4rq4-32rv-6wp6","Warn: Project is vulnerable to: GHSA-64g7-mvw6-v9qj"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T05:46:17.100Z","repository_id":57290648,"created_at":"2025-08-18T05:46:17.100Z","updated_at":"2025-08-18T05:46:17.100Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002889,"owners_count":26083468,"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-10T02:00:06.843Z","response_time":62,"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-04-02T06:17:31.352Z","updated_at":"2025-10-10T05:39:26.413Z","avatar_url":"https://github.com/dial-once.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-logtify-logstash\n\n[![CircleCI](https://circleci.com/gh/dial-once/node-logtify-logstash.svg?style=svg)](https://circleci.com/gh/dial-once/node-logtify-logstash)\n[![Sonar](http://proxy.dialonce.net/sonar/api/badges/gate?key=node-logtify-logstash)](http://sonar.dialonce.net/dashboard?id=node-logtify-logstash)\n[![Sonar](http://proxy.dialonce.net/sonar/api/badges/measure?key=node-logtify-logstash\u0026metric=ncloc)](http://sonar.dialonce.net/dashboard?id=node-logtify-logstash)\n[![Sonar](http://proxy.dialonce.net/sonar/api/badges/measure?key=node-logtify-logstash\u0026metric=coverage)](http://sonar.dialonce.net/dashboard?id=node-logtify-logstash)\n[![Sonar](http://proxy.dialonce.net/sonar/api/badges/measure?key=node-logtify-logstash\u0026metric=code_smells)](http://proxy.dialonce.net/sonar/api/badges/measure?key=node-logtify-logstash\u0026metric=coverage)\n[![Sonar](http://proxy.dialonce.net/sonar/api/badges/measure?key=node-logtify-logstash\u0026metric=bugs)](http://sonar.dialonce.net/dashboard?id=node-logtify-logstash)\n[![Sonar](http://proxy.dialonce.net/sonar/api/badges/measure?key=node-logtify-logstash\u0026metric=sqale_debt_ratio)](http://sonar.dialonce.net/dashboard?id=node-logtify-logstash)\n\nLogstash subscriber for logtify logger\n\n## Installation\n```\nnpm i -S logtify-logstash\n```\n\n## Usage\nUsed with[logtify](https://github.com/dial-once/node-logtify) module.\n\n```js\nrequire('logtify-logstash')({ LOGSTASH_PORT: 3000, LOGSTASH_HOST: 'app.on.thenet' });\nconst { stream, logger } = require('logtify')();\nlogger.log('error', new Error('Test error'));\nlogger.info('Hello world!');\n```\n\nThe subscriber will make sure that a message will be sent to Logstash if:\n* ``message.level \u003e= 'MIN_LOG_LEVEL_LOGSTASH' || 'MIN_LOG_LEVEL'``\n* ``process.env.LOGSTASH_LOGGING !== 'true' || settings.LOGSTASH_LOGGING !== true``\n\n\n## Usage within child_process.fork()\nSince within child_process we need to pipe socket's tcp channel, the best way to manage logging is to transfer them via ipc channel:\n\n```js\nconst cp = require('child_process');\nconst { stream } = require('logtify')();\n\n// creating a forked process\nconst process = cp.fork('\u003cpath\u003e/some.js', [], {\n  env: { FORKED: true }\n});\n\nprocess.on('message', data =\u003e {\n  // passing message from child to logger\n  stream.log(data.level, data.message, ...data.meta)\n});\n\n```\n\n```js\n// some.js\n\nconst { logger, stream } = require('logtify')();\n\n// if from forked process\nif (process.env.FORKED) {\n  stream.log = (level, message, ...meta) =\u003e {\n    // if ipc channel was not closed\n    if (process.channel) {\n      process.send({\n        level,\n        message,\n        meta: meta || []\n      });\n    }\n  };\n}\n\n\nlogger.info('Hello world', { from: 'forked_process' });\n```\n\n**Settings**:\nModule can be configured by both env variables or config object. However, env variables have a higher priority.\n```js\n{\n  LOGSTASH_HOST: 'app.on.thenet',\n  LOGSTASH_PORT: 3000,\n  LOGSTASH_LOGGING: true|false, // true by default\n  MIN_LOG_LEVEL_LOGSTASH: 'silly|verbose|info|warn|error',\n  LOG_TIMESTAMP = 'true'\n  LOG_ENVIRONMENT = 'true'\n  LOG_LEVEL = 'true'\n  LOG_REQID = 'true' // only included when provided with metadata\n  LOG_CALLER_PREFIX = 'true' // additional prefix with info about caller module/project/function\n  JSONIFY = 'true' // converts metadata to json\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdial-once%2Fnode-logtify-logstash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdial-once%2Fnode-logtify-logstash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdial-once%2Fnode-logtify-logstash/lists"}