{"id":19927185,"url":"https://github.com/murilobeltrame/aspnetgraylogsample","last_synced_at":"2026-04-14T10:31:31.807Z","repository":{"id":46590137,"uuid":"143945274","full_name":"murilobeltrame/AspNetGraylogSample","owner":"murilobeltrame","description":"A simple project to showcase logging an ASP.Net Core application on Graylog","archived":false,"fork":false,"pushed_at":"2018-08-13T16:35:44.000Z","size":912,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-03T22:50:09.941Z","etag":null,"topics":["aspnet","aspnet-core","aspnetcore","docker","docker-compose","dotnet","dotnet-core","dotnetcore","graylog","mvc"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/murilobeltrame.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-08T01:31:23.000Z","updated_at":"2023-03-24T04:02:29.000Z","dependencies_parsed_at":"2022-09-17T16:20:11.789Z","dependency_job_id":null,"html_url":"https://github.com/murilobeltrame/AspNetGraylogSample","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/murilobeltrame/AspNetGraylogSample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murilobeltrame%2FAspNetGraylogSample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murilobeltrame%2FAspNetGraylogSample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murilobeltrame%2FAspNetGraylogSample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murilobeltrame%2FAspNetGraylogSample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/murilobeltrame","download_url":"https://codeload.github.com/murilobeltrame/AspNetGraylogSample/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murilobeltrame%2FAspNetGraylogSample/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31793212,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T02:24:21.117Z","status":"ssl_error","status_checked_at":"2026-04-14T02:24:20.627Z","response_time":153,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aspnet","aspnet-core","aspnetcore","docker","docker-compose","dotnet","dotnet-core","dotnetcore","graylog","mvc"],"created_at":"2024-11-12T22:32:35.435Z","updated_at":"2026-04-14T10:31:31.790Z","avatar_url":"https://github.com/murilobeltrame.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AspNetGraylogSample\n\nThis is a very simple sample showing how to log an ASP.Net Core on Graylog\n\n## Summary\n\n- [Requirements](#requirements)\n- [Running](#running)\n   - [Dependencies](#dependencies)\n   - [Application](#application)\n- [Logging ASP.Net Core](#logging-aspnet-core)\n- [Exploring Graylog](#exploring-graylog)\n- [References](#references)\n\n## Requirements\n\n| Tool | Desc | Download |\n| ---- | ---- | -------- |\n| Docker | Specially to run the Compose to run up all the solution dependencies like Mongo, Graylog and Elastic Search | [https://store.docker.com/](https://store.docker.com/) |\n| DotNet Core SDK | To run the sample application. You can optionally run the sample application on a container but you will need to deal with networking stuff | [https://www.microsoft.com/net/download](https://www.microsoft.com/net/download) |\n\n## Running\n\n### Dependencies\n\nRun dependencies means run all stack required for Graylog (MongoDb, ElasticSearch and Graylog itself).\nBy default, Graylog locks some host ports:\n\n| Ports | Desc |\n| ----- | ---- |\n| **9000** | Graylog web interface and REST API |\n| **514** | Syslog TCP |\n| **514/udp** | Syslog UDP |\n| **12201** | GELF TCP |\n| **12201/udp** | GELF UDP |\n\nTo run the solution dependencies, run the following command on project root:\n\n```sh\ndocker-compose up -d\n```\n\n\u003e The `-d` option is opitional and tells the command to run on background freeing up the terminal.\n\n### Application\n\nTo run the sample application, just run the command\n\n```sh\ndotnet run -p ./SampleMVC\n```\n\n\u003e By default, the sample application locks the **5000** port on host.\n\n## Logging ASP.Net Core\n\nThe sample applications uses the [Gelf.Extensions.Logging](https://www.nuget.org/packages/Gelf.Extensions.Logging/) library, that relyes on [Microsoft.Extensions.Logging](https://www.nuget.org/packages/Microsoft.Extensions.Logging/), enabling a very seamless integration to the application pipeline and enabling a very simple loggin implementation.\nTo log informations to Graylog just use the common pattern as described in the [ASP.Net Core Documentation](https://docs.microsoft.com/pt-br/aspnet/core/fundamentals/logging/?view=aspnetcore-2.1).\n\n## Exploring Graylog\n\nThe view logged information on Graylog, just access the web interface.\nBy default, it should be running on `http://localhost:9000`.\n\n## References\n\n- [https://hub.docker.com/r/graylog/graylog/](https://hub.docker.com/r/graylog/graylog/)\n- [https://github.com/mattwcole/gelf-extensions-logging](https://github.com/mattwcole/gelf-extensions-logging)\n- [https://docs.microsoft.com/pt-br/aspnet/core/fundamentals/logging/?view=aspnetcore-2.1](https://docs.microsoft.com/pt-br/aspnet/core/fundamentals/logging/?view=aspnetcore-2.1)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmurilobeltrame%2Faspnetgraylogsample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmurilobeltrame%2Faspnetgraylogsample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmurilobeltrame%2Faspnetgraylogsample/lists"}