Skip to content
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

Is there anyway to log stream on TCP? #44

Open
umair321 opened this issue Jan 21, 2020 · 1 comment
Open

Is there anyway to log stream on TCP? #44

umair321 opened this issue Jan 21, 2020 · 1 comment

Comments

@umair321
Copy link

How can I log stream to TCP, checked the code and there is not a single option to input TCP credentials in it.

@creharmony
Copy link

on W10, I just migrating from Docker Desktop for Windows which becomes paying.. to WSL2 docker +portainer
So now localy, I'am using graylog in a WSL2 docker container

Before migrating, I were using UDP + this graylog2 library without any issue 👍
But now, and as there is some issue with UDP forwarding on WSL2 (microsoft/WSL#4825) I need to switch to TCP.

FYI @umair321 I've just tested kkamkou/node-gelf-pro with success:

var log = require('gelf-pro');
log.setConfig({adapterName: 'tcp', adapterOptions: {host: '127.0.0.1', port: 12202, family: 4}});
log.info("Hello world");

It would be great if graylog2 could support the TCP adapter for users facing the same UDP limitations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants