6 changed files with 227 additions and 121 deletions
@ -0,0 +1,38 @@ |
|||||
|
# LINGYUN.Abp.AuditLogging.Elasticsearch |
||||
|
|
||||
|
审计模块 Elasticsearch 实现 |
||||
|
|
||||
|
ElasticsearchAuditLogManager 实现了 IAuditLogManager, 审计日志由ES管理 |
||||
|
ElasticsearchSecurityLogManager 实现了 ISecurityLogManager, 安全日志由ES管理 |
||||
|
|
||||
|
## 模块引用 |
||||
|
|
||||
|
|
||||
|
```csharp |
||||
|
[DependsOn(typeof(AbpAuditLoggingElasticsearchModule))] |
||||
|
public class YouProjectModule : AbpModule |
||||
|
{ |
||||
|
// other |
||||
|
} |
||||
|
``` |
||||
|
|
||||
|
## 配置项 |
||||
|
|
||||
|
* AbpAuditLoggingElasticsearchOptions.IndexPrefix 索引前缀, 默认 auditlogging |
||||
|
|
||||
|
## 注意事项 |
||||
|
|
||||
|
与租户模块集成, 跨租户时将会切换索引 |
||||
|
|
||||
|
## appsettings.json |
||||
|
|
||||
|
```json |
||||
|
{ |
||||
|
"AuditLogging": { |
||||
|
"Elasticsearch": { |
||||
|
"IndexPrefix": "auditlogging" |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
``` |
||||
@ -0,0 +1,35 @@ |
|||||
|
# LINGYUN.Abp.Elasticsearch |
||||
|
|
||||
|
Abp Elasticsearch集成,提供全局唯一IElasticClient访问接口 |
||||
|
|
||||
|
## 模块引用 |
||||
|
|
||||
|
|
||||
|
```csharp |
||||
|
[DependsOn(typeof(AbpElasticsearchModule))] |
||||
|
public class YouProjectModule : AbpModule |
||||
|
{ |
||||
|
// other |
||||
|
} |
||||
|
``` |
||||
|
|
||||
|
## 配置项 |
||||
|
|
||||
|
* AbpElasticsearchOptions.FieldCamelCase 字段是否采用 camelCase 格式, 默认false |
||||
|
* AbpElasticsearchOptions.NodeUris ES端点,多个端点以,或;分隔 |
||||
|
* AbpElasticsearchOptions.TypeName 文档名称,默认_doc |
||||
|
* AbpElasticsearchOptions.ConnectionLimit 最大连接数,详情见 NEST 文档 |
||||
|
* AbpElasticsearchOptions.UserName 连接用户,详情见 NEST 文档 |
||||
|
* AbpElasticsearchOptions.Password 用户密码,详情见 NEST 文档 |
||||
|
* AbpElasticsearchOptions.ConnectionTimeout 连接超时时间,详情见 NEST 文档 |
||||
|
|
||||
|
## appsettings.json |
||||
|
|
||||
|
```json |
||||
|
{ |
||||
|
"Elasticsearch": { |
||||
|
"NodeUris": "http://localhost:9200" |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
``` |
||||
Loading…
Reference in new issue