{"id":23626322,"url":"https://github.com/datalust/bunyan-seq","last_synced_at":"2025-08-31T02:31:41.797Z","repository":{"id":6140321,"uuid":"54858930","full_name":"datalust/bunyan-seq","owner":"datalust","description":"A Bunyan stream to send events to Seq","archived":false,"fork":false,"pushed_at":"2023-05-03T03:51:20.000Z","size":278,"stargazers_count":11,"open_issues_count":2,"forks_count":10,"subscribers_count":7,"default_branch":"dev","last_synced_at":"2024-06-18T17:02:12.962Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://datalust.co/seq","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/datalust.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,"governance":null}},"created_at":"2016-03-28T02:14:31.000Z","updated_at":"2022-04-12T01:51:18.000Z","dependencies_parsed_at":"2023-01-13T13:51:13.061Z","dependency_job_id":"6e57f5c7-c9fc-46e2-a29d-4f5bd66514ce","html_url":"https://github.com/datalust/bunyan-seq","commit_stats":{"total_commits":78,"total_committers":9,"mean_commits":8.666666666666666,"dds":0.4487179487179487,"last_synced_commit":"6988442c07b6ffca6d34565329b0c895413ead84"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datalust%2Fbunyan-seq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datalust%2Fbunyan-seq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datalust%2Fbunyan-seq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datalust%2Fbunyan-seq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datalust","download_url":"https://codeload.github.com/datalust/bunyan-seq/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231548410,"owners_count":18393559,"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-12-27T22:52:56.775Z","updated_at":"2025-08-31T02:31:41.785Z","avatar_url":"https://github.com/datalust.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bunyan-seq ![Build](https://github.com/datalust/bunyan-seq/workflows/Test/badge.svg) ![Publish](https://github.com/datalust/bunyan-seq/workflows/Publish/badge.svg) [![NPM](https://img.shields.io/npm/v/bunyan-seq.svg)](https://www.npmjs.com/package/bunyan-seq)\n\nA Bunyan stream to send events to [Seq](https://datalust.co/seq). Tested with Node.js versions 4.2.2 and up.\n\n\u003e [!WARNING]\n\u003e\n\u003e This package is deprecated due to inactivity in the upstream Bunyan project, and no further updates are planned at this time.\n\n## Usage\n\nFirst, install `bunyan-seq` as a global tool:\n\n```shell\nnpm install -g bunyan-seq\n```\n\nThen, pipe the output of your bunyan-enabled app to it:\n\n```shell\nnode your-app.js | bunyan-seq --serverUrl http://localhost:5341 --apiKey 1234567890  --property application=ExampleApp\n```\n\n`bunyan-seq` accepts the following parameters:\n\n- `serverUrl` - this is the base URL of your Seq server; if omitted, the default value of `http://localhost:5341` will be used\n- `apiKey` - your Seq API key, if one is required; the default does not send an API key\n- `logOtherAs` - log other output (not formatted through bunyan) to seq at this loglevel. Useful to capture messages if the node process crashes or smilar.\n- `property` - add additional properties to all logs sent to Seq\n\n### Structured logging with message templates\n\nYou can specify property names as tokens in the log message to control how the event is rendered in Seq:\n\n```js\n// Seq will render this as 'Hi, Alice!'\nlog.info({ user: 'Alice' }, 'Hi, {user}!');\n```\n\nThe full message template syntax is documented [here](https://messagetemplates.org).\n\n### Capturing other output\n\nTo enable capture of output not formatted through bunyan use the `logOtherAs` parameter. It's possible to use different settings for `STDOUT`/`STDERR` like this, when using bash:\n\n```shell\nnode your-app.js `\n    2\u003e \u003e(bunyan-seq --logOtherAs Error --serverUrl http://localhost:5341 --apiKey 1234567890) `\n    \u003e \u003e(bunyan-seq --logOtherAs Information --serverUrl http://localhost:5341 --apiKey 1234567890)\n```\n\n## In-process usage\n\nUse the `createStream()` method to create a Bunyan stream configuration, passing `serverUrl`, `apiKey` and batching parameters.\n\n```js\nlet bunyan = require('bunyan');\nlet seq = require('bunyan-seq');\n\nvar log = bunyan.createLogger({\n  name: 'myapp',\n  streams: [\n    {\n      stream: process.stdout,\n      level: 'warn'\n    },\n    seq.createStream({\n      serverUrl: 'http://localhost:5341',\n      level: 'info',\n      reemitErrorEvents: true,\n      onError: (e) =\u003e {\n        console.error('[SeqStreamCustomError] failed to log events:', e);\n      }\n    })\n  ]\n});\n\nlog.info('hi');\nlog.warn({ lang: 'fr' }, 'au revoir');\n```\n\nRead the [complete documentation](https://docs.datalust.co/docs/using-nodejs).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatalust%2Fbunyan-seq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatalust%2Fbunyan-seq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatalust%2Fbunyan-seq/lists"}