{"id":17882412,"url":"https://github.com/ealsur/loganalytics-extensions-logging","last_synced_at":"2025-10-29T11:13:04.094Z","repository":{"id":60773947,"uuid":"71565009","full_name":"ealsur/loganalytics-extensions-logging","owner":"ealsur","description":"Azure Log Analytics Logger extension for ASP.NET Core ","archived":false,"fork":false,"pushed_at":"2018-10-03T17:24:41.000Z","size":25,"stargazers_count":7,"open_issues_count":2,"forks_count":5,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-01T16:11:19.361Z","etag":null,"topics":["asp-net-core","azure-log-analytics","extension","logger"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ealsur.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-21T13:02:04.000Z","updated_at":"2023-08-29T11:01:56.000Z","dependencies_parsed_at":"2022-10-04T15:29:28.078Z","dependency_job_id":null,"html_url":"https://github.com/ealsur/loganalytics-extensions-logging","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ealsur%2Floganalytics-extensions-logging","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ealsur%2Floganalytics-extensions-logging/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ealsur%2Floganalytics-extensions-logging/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ealsur%2Floganalytics-extensions-logging/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ealsur","download_url":"https://codeload.github.com/ealsur/loganalytics-extensions-logging/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244210960,"owners_count":20416559,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["asp-net-core","azure-log-analytics","extension","logger"],"created_at":"2024-10-28T12:54:43.070Z","updated_at":"2025-10-29T11:13:03.988Z","avatar_url":"https://github.com/ealsur.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Azure Log Analytics ASP.NET Core Logging extension\n\nThis package extends the logging options for ASP.NET Core adding the possibility of sending logs directly to [Azure Log Analytics](https://azure.microsoft.com/services/log-analytics/) as JSON payloads.\n\nIt uses the [HTTPDataCollectorAPI](https://github.com/ealsur/HTTPDataCollectorAPI) package internally.\n\n## Get it\n\nYou can obtain this project as a [Nuget Package](https://www.nuget.org/packages/LogAnalytics.Extensions.Logging). \n\n    Install-Package LogAnalytics.Extensions.Logging\n\nOr reference it and use it according to the [License](./LICENSE).\n\n## Use it\n\nUsing it is simple, just reference the package and add it to the Logging pipeling in your `Startup.cs` file:\n\n```cs\npublic void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)\n{\n\t\t\t//Add Logger\n\t\t\tloggerFactory.AddLogAnalytics(\"{Your_Workspace_Id}\", \"{Your_Key_Id}\", \"{Your_Namespace}\", LogLevel.Critical);\n\t\t\tapp.UseMvcWithDefaultRoute();\t\t\t\n}\n```\nYour **WorkspaceId** and **API Key** are part of your Azure Log Analytics subscription.\n\nThe **Namespace** is the name that _identifies your LogType_ in Azure Log Analytics, mostly used to identify your application or source.\n\n## Does it support Azure Gov clouds?\n\nYes, just add the extra parameter to the registration:\n\n```cs\npublic void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)\n{\n\t\t\t//Add Logger\n\t\t\tloggerFactory.AddLogAnalytics(\"{Your_Workspace_Id}\", \"{Your_Key_Id}\", \"{Your_Namespace}\", LogLevel.Critical, \"ods.opinsights.azure.us\");\n\t\t\tapp.UseMvcWithDefaultRoute();\t\t\t\n}\n```\n\n## Issues\n\nPlease feel free to [report any issues](https://github.com/ealsur/loganalytics-extensions-logging/issues) you might encounter. Keep in mind that this library won't assure that your JSON payloads are being indexed, it will make sure that the HTTP Data Collection API [responds an Accept](https://azure.microsoft.com/en-us/documentation/articles/log-analytics-data-collector-api/#return-codes) but there is no way (right now) to know when has the payload been indexed completely. \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fealsur%2Floganalytics-extensions-logging","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fealsur%2Floganalytics-extensions-logging","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fealsur%2Floganalytics-extensions-logging/lists"}