{"id":31816552,"url":"https://github.com/splunk/splunk-bunyan-logger","last_synced_at":"2025-10-11T09:56:32.715Z","repository":{"id":1553721,"uuid":"42700996","full_name":"splunk/splunk-bunyan-logger","owner":"splunk","description":"A Bunyan stream for Splunk's HTTP Event Collector","archived":false,"fork":false,"pushed_at":"2023-07-08T05:09:41.000Z","size":309,"stargazers_count":21,"open_issues_count":8,"forks_count":8,"subscribers_count":39,"default_branch":"master","last_synced_at":"2025-09-19T03:59:37.749Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://dev.splunk.com/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/splunk.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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":"2015-09-18T05:13:39.000Z","updated_at":"2025-07-03T17:50:07.000Z","dependencies_parsed_at":"2024-06-18T18:31:39.970Z","dependency_job_id":"ea623dca-6370-47d0-b899-25a52f1b5960","html_url":"https://github.com/splunk/splunk-bunyan-logger","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/splunk/splunk-bunyan-logger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splunk%2Fsplunk-bunyan-logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splunk%2Fsplunk-bunyan-logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splunk%2Fsplunk-bunyan-logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splunk%2Fsplunk-bunyan-logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/splunk","download_url":"https://codeload.github.com/splunk/splunk-bunyan-logger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splunk%2Fsplunk-bunyan-logger/sbom","scorecard":{"id":841880,"data":{"date":"2025-08-11","repo":{"name":"github.com/splunk/splunk-bunyan-logger","commit":"0cedc057fdd3d63ad2dda0ccde85e2f7821682ea"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"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":"Code-Review","score":8,"reason":"Found 5/6 approved changesets -- score normalized to 8","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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/splunk/splunk-bunyan-logger/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/splunk/splunk-bunyan-logger/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/splunk/splunk-bunyan-logger/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/splunk/splunk-bunyan-logger/test.yml/master?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/release.yml:17","Warn: npmCommand not pinned by hash: .github/workflows/test.yml:33","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 npmCommand dependencies pinned"],"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/release.yml:1","Warn: no topLevel permission defined: .github/workflows/test.yml:1","Info: no jobLevel write permissions found"],"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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: 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":"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":"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":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 29 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":"34 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","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-2pr6-76vf-7546","Warn: Project is vulnerable to: GHSA-8j8c-7jfh-h6hx","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","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-xf5p-87ch-gxw2","Warn: Project is vulnerable to: GHSA-5v2h-r2cx-5xgj","Warn: Project is vulnerable to: GHSA-rrrm-qjm4-v8hf","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-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-4rq4-32rv-6wp6","Warn: Project is vulnerable to: GHSA-64g7-mvw6-v9qj","Warn: Project is vulnerable to: GHSA-mxhp-79qh-mcx6","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-cf4h-3jhx-xvhq"],"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-23T20:39:39.775Z","repository_id":1553721,"created_at":"2025-08-23T20:39:39.775Z","updated_at":"2025-08-23T20:39:39.775Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279006749,"owners_count":26084185,"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-11T02:00:06.511Z","response_time":55,"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-10-11T09:56:30.896Z","updated_at":"2025-10-11T09:56:32.705Z","avatar_url":"https://github.com/splunk.png","language":"JavaScript","readme":"# Splunk HTTP Event Collector Stream for Bunyan\n\n#### Version 0.11.0\n\nThis project provides a [Bunyan](https://www.npmjs.com/package/bunyan) stream for HTTP Event Collector in Splunk Enterprise and Splunk Cloud.\n\n## Requirements\n\n* Node.js v4 or later. Splunk HTTP Event Collector Stream for Bunyan is tested with Node.js v10.0 and v14.0.\n* Splunk Enterprise 6.3.0 or later, or Splunk Cloud. Splunk HTTP Event Collector Stream for Bunyan is tested with Splunk Enterprise 8.0 and 8.2.0.\n* An HTTP Event Collector token from your Splunk Enterprise or Splunk Cloud server.\n* [Bunyan](https://www.npmjs.com/package/bunyan) (`npm install --save bunyan`).\n\n## Installation\n\nFirst, update npm to the latest version by running: `sudo npm install npm -g`.\n\nThen run: `npm install --save splunk-bunyan-logger`.\n\n## Usage\n\nSee the `examples` folder for usage examples:\n\n* `all_batching.js`: Shows how to configure a Bunyan Stream with the 3 batching settings: `batchInterval`, `maxBatchCount`, \u0026 `maxBatchSize`.\n* `basic.js`: Shows how to configure a Bunyan stream and send a log message to Splunk.\n* `custom_format.js`: Shows how to configure a Bunyan Stream to log messages to Splunk using a custom format.\n* `manual_batching.js`: Shows how to queue log messages, and send them in batches by manually calling `flush()`.\n* `retry.js`: Shows how to configure retries on errors.\n\n### Support\n\nThe Splunk HTTP Event Collector Stream for Bunyan is community-supported.\n\n1. You can find help through our community on [Splunk Answers](https://community.splunk.com/t5/tag/logging-library-javascript/tg-p) (use the `logging-library-javascript` tag to identify your questions).\n2. File issues on [GitHub](https://github.com/splunk/splunk-bunyan-logger/issues).\n\n### SSL\n\nNote: SSL certificate validation is diabled by default.\nTo enable it, set `logger.requestOptions.strictSSL = true` on your `SplunkStream` instance:\n\n```javascript\nvar bunyan = require(\"bunyan\");\nvar splunkBunyan = require(\"splunk-bunyan-logger\");\n\nvar config = {\n    token: \"your-token-here\",\n    url: \"https://splunk.local:8088\"\n};\n\nvar splunkStream = splunkBunyan.createStream(config);\n// Enable SSL certificate validation\nstream.logger.requestOptions.strictSSL = true;\n\n// Note: splunkStream must be set to an element in the streams array\nvar Logger = bunyan.createLogger({\n    name: \"my logger\",\n    streams: [\n        splunkStream\n    ]\n});\n```\n\n### Basic example\n\n```javascript\nvar bunyan = require(\"bunyan\");\nvar splunkBunyan = require(\"splunk-bunyan-logger\");\n\nvar config = {\n    token: \"your-token-here\",\n    url: \"https://splunk.local:8088\"\n};\n\nvar splunkStream = splunkBunyan.createStream(config);\n\n// Note: splunkStream must be set to an element in the streams array\nvar Logger = bunyan.createLogger({\n    name: \"my logger\",\n    streams: [\n        splunkStream\n    ]\n});\n\nvar payload = {\n    // Message can be anything; doesn't have to be an object\n    message: {\n        temperature: \"70F\",\n        chickenCount: 500\n    }\n};\n\nconsole.log(\"Sending payload\", payload);\nLogger.info(payload, \"Chicken coup looks stable.\");\n```\n\n## Community\n\nStay connected with other developers building on Splunk software.\n\n\u003ctable\u003e\n\n\u003ctr\u003e\n\u003ctd\u003e\u003cb\u003eEmail\u003c/b\u003e\u003c/td\u003e\n\u003ctd\u003edevinfo@splunk.com\u003c/td\u003e\n\u003c/tr\u003e\n\n\u003ctr\u003e\n\u003ctd\u003e\u003cb\u003eIssues\u003c/b\u003e\n\u003ctd\u003e\u003cspan\u003ehttps://github.com/splunk/splunk-bunyan-logger/issues/\u003c/span\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\n\u003ctr\u003e\n\u003ctd\u003e\u003cb\u003eAnswers\u003c/b\u003e\n\u003ctd\u003e\u003cspan\u003ehttp://answers.splunk.com/\u003c/span\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\n\u003ctr\u003e\n\u003ctd\u003e\u003cb\u003eBlog\u003c/b\u003e\n\u003ctd\u003e\u003cspan\u003ehttp://blogs.splunk.com/dev/\u003c/span\u003e\u003c/td\u003e\n\u003c/tr\u003e\n\n\u003ctr\u003e\n\u003ctd\u003e\u003cb\u003eTwitter\u003c/b\u003e\n\u003ctd\u003e@splunkdev\u003c/td\u003e\n\u003c/tr\u003e\n\n\u003c/table\u003e\n\n## License\n\nThe Splunk HTTP Event Collector Stream for Bunyan is licensed under the Apache\nLicense 2.0. Details can be found in the LICENSE file.\n\n[contact]:                  https://www.splunk.com/en_us/support-and-services.html\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsplunk%2Fsplunk-bunyan-logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsplunk%2Fsplunk-bunyan-logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsplunk%2Fsplunk-bunyan-logger/lists"}