public override void ActivateOptions() { AddOptionalServer(); _client = new WebElasticClient(Servers, ElasticSearchTimeout, Ssl, AllowSelfSignedServerCert, AuthenticationMethod); LogEventFactory.Configure(this); if (Template != null && Template.IsValid) { _client.PutTemplateRaw(Template.Name, File.ReadAllText(Template.FileName)); } ElasticFilters.PrepareConfiguration(_client); RestartTimer(); }
public override void ActivateOptions() { _client = new WebElasticClient(Server, Port, Ssl, AllowSelfSignedServerCert, BasicAuthUsername, BasicAuthPassword, UseAWS4Signer, AWS4SignerRegion, AWS4SignerAccessKey, AWS4SignerSecretKey, ElasticSearchTimeout); LogEventFactory.Configure(this); if (Template != null && Template.IsValid) { _client.PutTemplateRaw(Template.Name, File.ReadAllText(Template.FileName)); } ElasticFilters.PrepareConfiguration(_client); RestartTimer(); }
public override void ActivateOptions() { AddOptionalServer(); _client = _elasticClientFactory.CreateClient(Servers, ElasticSearchTimeout, Ssl, AllowSelfSignedServerCert, AuthenticationMethod); _logEventConverter = _logEventConverterFactory.Create(FixedFields, SerializeObjects); if (Template != null && Template.IsValid) { if (IndexAsync) { _client.PutTemplateRaw(Template.Name, _fileAccessor.ReadAllText(Template.FileName)); } else { _client.PutTemplateRaw(Template.Name, _fileAccessor.ReadAllText(Template.FileName)); } } ElasticFilters.PrepareConfiguration(_client); _timer.Restart(BulkIdleTimeout); }