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

Graylog HTTP logging slowdown #63

Open
Ghostbird opened this issue Sep 24, 2020 · 0 comments
Open

Graylog HTTP logging slowdown #63

Ghostbird opened this issue Sep 24, 2020 · 0 comments

Comments

@Ghostbird
Copy link

Ghostbird commented Sep 24, 2020

I have a micro-service running that used to log to file. I wanted to log these messages to our Graylog instance.

However once I enabled logging over HTTPS to our Graylog instance, the service started to slow down tremendously. Regular requests would suddenly take up to five seconds to complete, instead of fractions of seconds. Do you have any idea what I could have done wrong?

When I remove the Graylog section from the appsettings.json shown below, the speed is back to normal.

In other applications logging to the same Graylog instance's HTTPS endpoint, I have not noticed this slowdown.

appsettings.json

{
  "Serilog": {
    "MinimumLevel": {
      "Default": "Warning",
      "Override": {
        "Microsoft": "Warning",
        "Windows": "Warning"
      }
    },
    "WriteTo": [
      {
        "Name": "Async",
        "Args": {
          "configure": [
            {
              "Name": "Console"
            },
            {
              "Name": "File",
              "Args": {
                "path": "/var/log/TestService/.log",
                "rollingInterval": "Day",
                "retainedFileCountLimit": 30,
                "rollOnFileSizeLimit": true
              }
            },
            {
              "Name": "Graylog",
              "Args": {
                "hostnameOrAddress": "https://graylog.example.org",
                "port": "443",
                "transportType": "Http"
              }
            }
          ]
        }
      }
    ],
    "Properties": {
      "Application": "Test Service"
    }
  },
}
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

1 participant