-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pino v7 pipelining is not work #15
Comments
@Eomm could you take a look? |
@mcollina @Eomm I looked in more detail what could be the problem and this is what I found out: Transferring data from From: const steam = split(function (line) { ... }) To: const stream = new PassThrough() But then there is no data transformation. |
So, I figured out what was the matter. The problem is really in the The In general, it seemed to me inappropriate to use the It would be better to move this functionality (splitting data into lines) into a separate transport, which is connected to the pipeline like all other plugins. |
This explains why the tests were working ...getConfigPath('5424', 'newline.json') I just pick one random file configuration So this is a workaround actually |
Unfortunately, the baseline syslog format (https://datatracker.ietf.org/doc/html/rfc3164#section-4.1.3) states:
Also, modern syslog also does not specify an "ending delimiter" -- https://datatracker.ietf.org/doc/html/rfc5424#section-6
|
Here is an issue for pino-socket: pinojs/pino-socket#46. |
@mcollina @Eomm I apologize, I made a mistake here myself when creating an issue. There are no problems in any of your modules ( The problem just arose with my own transport when I implemented it via I apologize to you guys for misleading you. |
Hi!
I made such a configuration as you described in the example:
But I don't get any logs.
I spent a lot of time debugging this issue. And here's what I found out:
Your plugin (pipo-syslog) does not transmit any data further down the pipeline. To be sure of this, I wrote my transport and replaced pino-socket:
After starting the logger, I only see the message of
Console-1
. When I try to send data to the logger, nothing happens. I don't see a single message.But if I comment out your plugin in the configuration, then I will receive all messages from the logger (without the transformations that your plugin does, since it is disabled).
You need to fix the data transfer to the next pipeline.
Hope you can help me solve this problem!
The text was updated successfully, but these errors were encountered: