All Projects → ealsur → HTTPDataCollectorAPI

ealsur / HTTPDataCollectorAPI

Licence: Apache-2.0 license
Azure Log Analytics HTTP Data Collector API wrapper

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to HTTPDataCollectorAPI

awesome
🎉 An Open Microservice for "awesome" slugs.
Stars: ✭ 25 (+19.05%)
Mutual labels:  oms
siemstress
Very basic CLI SIEM (Security Information and Event Management system).
Stars: ✭ 24 (+14.29%)
Mutual labels:  log-collector
oms cms
A Django content management system focused on flexibility and user experience
Stars: ✭ 18 (-14.29%)
Mutual labels:  oms
oms.py
🔨 A micro-framework for the OMS, and code written in Python 3.6+.
Stars: ✭ 106 (+404.76%)
Mutual labels:  oms
OneEPA-Standalone-App-Template
Standalone application template for non-www EPA.gov applications
Stars: ✭ 21 (+0%)
Mutual labels:  oms
dlog
Go library to parse the Docker Logs stream
Stars: ✭ 28 (+33.33%)
Mutual labels:  log-collector
aks-agic
This sample shows how to deploy an AKS cluster with Application Gateway, Application Gateway Ingress Controller, Azure Container Registry, Log Analytics and Key Vault.
Stars: ✭ 36 (+71.43%)
Mutual labels:  azure-log-analytics
LogESP
Open Source SIEM (Security Information and Event Management system).
Stars: ✭ 162 (+671.43%)
Mutual labels:  log-collector
one-workflow
django + vue 一个简单的工作流系统,工单系统
Stars: ✭ 192 (+814.29%)
Mutual labels:  oms
Fluentd
Fluentd: Unified Logging Layer (project under CNCF)
Stars: ✭ 10,807 (+51361.9%)
Mutual labels:  log-collector
Graylog2 Server
Free and open source log management
Stars: ✭ 5,952 (+28242.86%)
Mutual labels:  log-collector
ansible-fluentd
Provision fluentd log collector
Stars: ✭ 20 (-4.76%)
Mutual labels:  log-collector
OMS
自动化运维系统,QQ群342844540,博客http://ywzhou.blog.51cto.com
Stars: ✭ 28 (+33.33%)
Mutual labels:  oms
log2oms
A super tiny agent (binary 5MB, container 12MB) that pushs app logs to Azure Log Analytics (OMS)
Stars: ✭ 17 (-19.05%)
Mutual labels:  oms
Yuna
Yuan企业通用后台,快速实现微后台架构
Stars: ✭ 19 (-9.52%)
Mutual labels:  oms

Azure Log Analytics HTTP Collector API wrapper

This package is a .Net adaptation of the Powershell code for implementing the HTTP Collector API for Azure Log Analytics as seen on the announcement.

Full API Documentation

Get it

You can obtain this project as a Nuget Package.

Install-Package HTTPDataCollectorAPI

Or reference it and use it according to the License.

Use it

Using it is simple:

var collector = new  HTTPDataCollectorAPI.Collector("{Your_Workspace_Id}", "{Your_Workspace_Key}");
await collector.Collect("TestLogType", "{\"TestAttribute\":\"TestValue\"}");

You can also pass serializable objects (they will be serialized with Newtonsoft.Json):

var anObject = new MySerializableClass(){
  MyIntAttribute = 4,
  MyStringAttribute = "hello",
  MyListAttribute = new List<string>(){"one","two"}
};
var collector = new  HTTPDataCollectorAPI.Collector("{Your_Workspace_Id}", "{Your_Workspace_Key}");
await collector.Collect("TestLogType", anObject);

If you are using a Depedency Injection mechanism (or ASP.NET Core) you can use the available interface. In ASP.NET Core for example:

public void ConfigureServices(IServiceCollection services)
{
  //... some other code
  services.AddSingleton<HTTPDataCollectorAPI.ICollector, HTTPDataCollectorAPI.Collector>();
}

Does it work on Azure Gov clouds?

Yes, just use the constructor overload to define the cloud service endpoint:

var collector = new  HTTPDataCollectorAPI.Collector("{Your_Workspace_Id}", "{Your_Workspace_Key}", "ods.opinsights.azure.us");

Issues

Please feel free to report any 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 but there is no way (right now) to know when has the payload been indexed completely.

Supported Frameworks

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].