ElasticSearchConfiguration Class

ElasticSearch 配置選項

Definition

Namespace: eBizprise.Framework.Log.ElasticSearch
Assembly: eBizprise.Framework.Log.LogHelper.ElasticSearch (in eBizprise.Framework.Log.LogHelper.ElasticSearch.dll) Version: 25.0.0.0+adf38c4ccb2bf98d8ad258a6278302b5e05a94ed
C#
public class ElasticSearchConfiguration
Inheritance
Object    ElasticSearchConfiguration

Constructors

ElasticSearchConfigurationInitializes a new instance of the ElasticSearchConfiguration class

Properties

ApiKey API Key (用於 ApiKey Authentication)
ApiKeyId API Key ID (用於 ApiKey Authentication)
BatchSize 批次大小
ConnectionTimeout 連線逾時時間(秒)
IncludeAllProperties 是否包含所有日誌屬性
IndexFormat 索引名稱模板 (支援 NLog Layout 變數)
Layout 日誌格式
Password 密碼 (用於 Basic Authentication)
ProjectCode 專案代碼 (用於索引名稱)
ServerName 伺服器名稱 (用於索引名稱)
Uri ElasticSearch 伺服器 URI
Username 使用者名稱 (用於 Basic Authentication)

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)
Validate 驗證配置

Extension Methods

ToBsonString 轉換Bson字串
(Defined by SerializeExtend)
ToBsonString 轉換Bson字串
(Defined by SerializeExtend)
ToJsonString 轉換Json字串
(Defined by SerializeExtend)
ToJsonString 轉換Json字串
(Defined by SerializeExtend)
ToXmlString 轉換Xml字串
(Defined by SerializeExtend)
WriteJsonFile 寫入Json格式檔案
(Defined by SerializeExtend)

Revision History

DateVersionDescription
2025/12/0925.0.0.0支援 ElasticSearch 配置

See Also