I run the sample for NET Core:
Then I have ran Docker https://docs.graylog.org/en/4.0/pages/installation/docker.html?highlight=docker
Then I little bit corrected appsettings.json file:
{ "Logging": { "Console": { "LogLevel": { "Default": "Debug" } }, "GELF": { "Host": "127.0.0.1", "Port": 12201, "LogSource": "console-app-1", "LogLevel": { "Default": "Debug", "Microsoft": "Debug", "Gelf.Extensions.Logging.Samples.NetCore2": "Debug", "Gelf.Extensions.Logging.Samples.NetCore2.Program": "Debug" }, "LogLevel2": { "Microsoft.AspNetCore.Mvc.Razor": "Error", "Default": "Trace" }, "AdditionalFields": { "project_name": "my-project" } } } }
Run the application, it works but when I go to browser
localhost:9000
I do not see any records.
What I do wrong? How to check the GrayLog logs about errors?