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

Version 3.0.1 not working #95

Open
eogienko opened this issue Jun 16, 2023 · 7 comments
Open

Version 3.0.1 not working #95

eogienko opened this issue Jun 16, 2023 · 7 comments
Assignees

Comments

@eogienko
Copy link

Code:
image

appsettings.json:
image

I had version 2.3.0 installed which worked great. Updated to 3.0.0 (3.0.1) and everything broke. Logs are not sent to Graylog.
What to do?

@whir1
Copy link
Contributor

whir1 commented Jun 19, 2023

@eogienko Can you set SelfLog.Enable(Console.WriteLine); and write the output? In the master branch there is a test application for debugging sync, but with the current config - it works.

@whir1 whir1 self-assigned this Jun 19, 2023
@tzographos
Copy link

Indeed, version 3.0.1 still doesn't work. Version 2.3.0 works fine.

@eogienko
Copy link
Author

@whir1 I'll try it this week

@yyavci
Copy link

yyavci commented Jul 6, 2023

any updates? i have the same issue
btw i make it work with http but it fails using udp transport type.

note; i can send logs via netcat without problem.
here is working command;

echo -n '{ "version": "1.1", "host": "example.org", "short_message": "A short message", "level": 5, "_some_info": "foo" }' | nc -w0 -u 127.0.0.1 12201

and this is my appsettings WriteTo section (already added to usings);

      {
        "Name": "Graylog",
        "Args": {
          "hostnameOrAddress": "127.0.0.1",
          "port": "12201",
          "transportType": "Udp",
          "facility": "YYA"
        }
      }

@whir1
Copy link
Contributor

whir1 commented Jul 19, 2023

@yyavci I can't help because current version worked on our servers on udp =\

@joriverm
Copy link

ive come across an issue where a call to _logger.LogError causes the application to freeze and .net ends up infinitely waiting for something (this is within our global exception handler, so everything is halted/frozen).

maybe this can help point towards some fix?
our settings :

"Serilog": {
  "Using": [
    "Serilog.Sinks.Debug",
    "Serilog.Sinks.Graylog"
  ],
  "MinimumLevel": "Verbose",
  "WriteTo": [
    {
      "Name": "Debug"
    }
    {
      "Name": "Graylog",
      "Args": {
        "Facility": "{redacted}",
        "HostnameOrAddress": "{redacted hostname}",
        "Port": 12205,
        "TransportType": "Udp",
        "MinimumLogEventLevel": "Error",
        "UseSsl": true
      }
    }
  ]
}

2.3 had no issues, so somewhere between 2.3 & 3.0.2 this started happening.

@danielwertheim
Copy link

How can you not be affected by this? #97

It blows up immediatelly, during boot. Have done my own extension method that I use instead and also removed the hard coded UDP value. Then everything seem to work fine.

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

No branches or pull requests

6 participants