/// <summary> /// Query Constructor /// </summary> /// <param name="key">The name of the Search/Job. It does not need to be globally unique.</param> /// <param name="value">The Splunk Processing Language (SPL) for the search query.</param> /// <param name="service">The SplunkService object to provide access to the Splunk API.</param> /// <param name="earliestTime"> /// The earliest event time /// </param> /// <param name="latestTime"> /// The latest event time /// </param> /// <param name="maxEventCount">The maximum number of events to retrieve for each search</param> public SplunkDataQuery(string key, string value, SplunkService service, DateTime earliestTime, DateTime latestTime) { searchResults = null; Key = key; Value = value; Service = service; EarliestTime = earliestTime; LatestTime = latestTime; RemoteId = Service.SubmitJob(this); }
public SplunkDataSource(string hostname, int port, string username, string password, int maxCount, int searchJobTtl, bool useTls = true, bool validateCertificate = true) { Service = new SplunkService(hostname, port, maxCount, searchJobTtl, useTls, validateCertificate); Service.Login(username, password); }