public static void Send(EventItem eventItem) { string url = string.Format(SPLUNK_URL_TEMPLATE, PROJECT_ID, HOST, eventItem.Source.ToString("f"), eventItem.SourceType.ToString("f")); HTTPConnector HTTPConnector = new HTTPConnector(); string response = HTTPConnector.PostDataWithCredentials(url, "x", ACCESS_TOKEN, eventItem.Data); }
public static void Log(EventItem eventItem) { ThreadPool.QueueUserWorkItem(callback => Send(eventItem)); }
public static void Log(EventItem eventItem) { SplunkService.Log(eventItem); }