{"id":23626295,"url":"https://github.com/datalust/pino-seq","last_synced_at":"2025-08-31T02:31:41.012Z","repository":{"id":35524828,"uuid":"218175145","full_name":"datalust/pino-seq","owner":"datalust","description":"A stream to send Pino events to Seq ","archived":false,"fork":false,"pushed_at":"2024-03-26T22:20:41.000Z","size":231,"stargazers_count":11,"open_issues_count":3,"forks_count":10,"subscribers_count":5,"default_branch":"dev","last_synced_at":"2024-11-30T11:37:33.166Z","etag":null,"topics":["pino","seq"],"latest_commit_sha":null,"homepage":null,"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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-10-29T01:03:32.000Z","updated_at":"2024-03-26T16:51:09.000Z","dependencies_parsed_at":"2024-06-19T05:15:15.152Z","dependency_job_id":"0be20a8e-1b03-4b07-a1b0-b6d44b6ffb11","html_url":"https://github.com/datalust/pino-seq","commit_stats":{"total_commits":88,"total_committers":14,"mean_commits":6.285714285714286,"dds":0.5,"last_synced_commit":"b661238a5ec8d3ee4fb5a6dfe5ac600bceb63040"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datalust%2Fpino-seq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datalust%2Fpino-seq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datalust%2Fpino-seq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datalust%2Fpino-seq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datalust","download_url":"https://codeload.github.com/datalust/pino-seq/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231548401,"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":["pino","seq"],"created_at":"2024-12-27T22:52:49.734Z","updated_at":"2025-08-31T02:31:41.001Z","avatar_url":"https://github.com/datalust.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pino-seq ![Build](https://github.com/datalust/pino-seq/workflows/Test/badge.svg) ![Publish](https://github.com/datalust/pino-seq/workflows/Publish/badge.svg) [![NPM](https://img.shields.io/npm/v/pino-seq.svg)](https://www.npmjs.com/package/pino-seq)\n\nA stream to send [Pino](https://github.com/pinojs/pino) events to [Seq](https://datalust.co/seq). Tested with Node.js versions 18.x and up.\n\n### Out-of-process (transport) usage \u003csup\u003erecommended\u003c/sup\u003e\n\nFirst, install and use `pino` in your Node.js app, following the instructions in the [Pino documentation](https://getpino.io).\n\nThis will look something like:\n\n```js\nconst logger = (await import('pino'))();\nlogger.info('Hello, World!');\n```\n\nPino will, by default, write newline-delimited JSON events to `STDOUT`. These events are piped into the `pino-seq` transport.\n\nFirst, install `pino-seq` as a global tool:\n\n```shell\nnpm install -g pino-seq\n```\n\nThen, pipe the output of your Pino-enabled app to it:\n\n```shell\nnode your-app.js | pino-seq --serverUrl http://localhost:5341 --apiKey 1234567890 --property applicationName=PinoSeqExampleApp\n```\n\n`pino-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 pino) 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#### Capturing other output\n\nTo enable capture of output not formatted through pino 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 2\u003e \u003e(pino-seq --logOtherAs Error --serverUrl http://localhost:5341 --apiKey 1234567890) \u003e \u003e(pino-seq --logOtherAs Information --serverUrl http://localhost:5341 --apiKey 1234567890)\n```\n\n### In-process (stream) usage\n\nUse the `createStream()` method to create a Pino stream configuration, passing `serverUrl`, `apiKey` and batching parameters.\n\n```js\nimport pino from 'pino';\nimport pinoToSeq from 'pino-seq';\n\nlet stream = pinoToSeq.createStream({ serverUrl: 'http://localhost:5341' });\nlet logger = pino({ name: 'pino-seq example' }, stream);\n\nlogger.info('Hello Seq, from Pino');\n\nlet frLogger = logger.child({ lang: 'fr' });\nfrLogger.warn('au reviour');\n```\n\n### Acknowledgements\n\nOriginally by Simi Hartstein and published as `simihartstein/pino-seq`; maintainership transferred to Datalust at version 0.5.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatalust%2Fpino-seq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatalust%2Fpino-seq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatalust%2Fpino-seq/lists"}