Method | Description | |
---|---|---|
Add ( IEnumerable |
Post the event(s) to the Elasticsearch API. If the bufferSize in the connection string is set to more than 1, assume we use the _bulk API for better speed and efficiency
|
|
Create ( string connectionString ) : IRepository | ||
Create ( string connectionString, IHttpClient httpClient ) : IRepository |
Method | Description | |
---|---|---|
Repository ( log4net.ElasticSearch.Models.Uri uri, IHttpClient httpClient ) : System.Collections.Generic |
public Add ( IEnumerable |
||
logEvents | IEnumerable |
A collection of logEvents |
bufferSize | int | The BufferSize as set in the connection string details |
return | void |
public static Create ( string connectionString ) : IRepository | ||
connectionString | string | |
return | IRepository |
public static Create ( string connectionString, IHttpClient httpClient ) : IRepository | ||
connectionString | string | |
httpClient | IHttpClient | |
return | IRepository |