Skip to content

Is there anyway to log stream on TCP? #44

Open

Description

@umair321

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

Activity

  1. creharmony commented on Sep 9, 2021

    @creharmony

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions