mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-05-06 22:12:23 +08:00
chore: clean up codes
This commit is contained in:
@@ -2,20 +2,20 @@
|
||||
|
||||
This section covers configuration options for Nginx log processing and analysis features in Nginx UI.
|
||||
|
||||
## Advanced Indexing
|
||||
## Indexing
|
||||
|
||||
### AdvancedIndexingEnabled
|
||||
### IndexingEnabled
|
||||
|
||||
- Type: `boolean`
|
||||
- Default: `false`
|
||||
- Environment Variable: `NGINX_UI_NGINX_LOG_ADVANCED_INDEXING_ENABLED`
|
||||
- Environment Variable: `NGINX_UI_NGINX_LOG_INDEXING_ENABLED`
|
||||
- Version: `>= v2.2.0`
|
||||
|
||||
This option enables advanced indexing for Nginx logs, which provides high-performance log search and analysis capabilities.
|
||||
This option enables indexing for Nginx logs, which provides high-performance log search and analysis capabilities.
|
||||
|
||||
#### Behavior When Disabled (Basic Mode)
|
||||
|
||||
When `AdvancedIndexingEnabled` is set to `false`, Nginx UI still discovers log entries from your Nginx configuration and shows them in the Logs list. In this basic mode:
|
||||
When `IndexingEnabled` is set to `false`, Nginx UI still discovers log entries from your Nginx configuration and shows them in the Logs list. In this basic mode:
|
||||
|
||||
- You can view the list of detected log files (grouped by simple rotation patterns), but advanced features like indexing metrics, document counts, and search shards are not available.
|
||||
- Real-time viewing (tail) continues to work based on resolved access/error log paths.
|
||||
|
||||
@@ -92,7 +92,7 @@ Applicable for version v2.0.0-beta.37 and above.
|
||||
## Nginx Log
|
||||
| Configuration Setting | Environment Variable |
|
||||
|------------------------|---------------------------------------|
|
||||
| AdvancedIndexingEnabled | NGINX_UI_NGINX_LOG_ADVANCED_INDEXING_ENABLED |
|
||||
| IndexingEnabled | NGINX_UI_NGINX_LOG_INDEXING_ENABLED |
|
||||
| IndexPath | NGINX_UI_NGINX_LOG_INDEX_PATH |
|
||||
|
||||
## Node
|
||||
|
||||
@@ -2,20 +2,20 @@
|
||||
|
||||
本节介绍 Nginx UI 中 Nginx 日志处理和分析功能的配置选项。
|
||||
|
||||
## 高级索引
|
||||
## 索引
|
||||
|
||||
### AdvancedIndexingEnabled
|
||||
### IndexingEnabled
|
||||
|
||||
- 类型: `boolean`
|
||||
- 默认值: `false`
|
||||
- 环境变量: `NGINX_UI_NGINX_LOG_ADVANCED_INDEXING_ENABLED`
|
||||
- 环境变量: `NGINX_UI_NGINX_LOG_INDEXING_ENABLED`
|
||||
- 版本: `>= v2.2.0`
|
||||
|
||||
此选项启用 Nginx 日志的高级索引功能,提供高性能的日志搜索和分析能力。
|
||||
此选项启用 Nginx 日志的索引功能,提供高性能的日志搜索和分析能力。
|
||||
|
||||
#### 关闭时的行为(基础模式)
|
||||
|
||||
当 `AdvancedIndexingEnabled` 为 `false` 时,Nginx UI 仍会从 Nginx 配置中发现日志入口,并在日志列表中展示。在基础模式下:
|
||||
当 `IndexingEnabled` 为 `false` 时,Nginx UI 仍会从 Nginx 配置中发现日志入口,并在日志列表中展示。在基础模式下:
|
||||
|
||||
- 可以查看已检测到的日志文件列表(基于简单的轮转规则进行分组),但不提供索引指标、文档计数和分片搜索等高级功能。
|
||||
- 基于解析到的访问/错误日志路径,实时查看(tail)仍可使用。
|
||||
|
||||
@@ -103,7 +103,7 @@
|
||||
|
||||
| 配置 | 环境变量 |
|
||||
|-------------------------|-----------------------------------------------|
|
||||
| AdvancedIndexingEnabled | NGINX_UI_NGINX_LOG_ADVANCED_INDEXING_ENABLED |
|
||||
| IndexingEnabled | NGINX_UI_NGINX_LOG_INDEXING_ENABLED |
|
||||
| IndexPath | NGINX_UI_NGINX_LOG_INDEX_PATH |
|
||||
|
||||
## Node
|
||||
|
||||
@@ -2,20 +2,20 @@
|
||||
|
||||
本節介紹 Nginx UI 中 Nginx 日誌處理和分析功能的設定選項。
|
||||
|
||||
## 進階索引
|
||||
## 索引
|
||||
|
||||
### AdvancedIndexingEnabled
|
||||
### IndexingEnabled
|
||||
|
||||
- 類型: `boolean`
|
||||
- 預設值: `false`
|
||||
- 環境變數: `NGINX_UI_NGINX_LOG_ADVANCED_INDEXING_ENABLED`
|
||||
- 環境變數: `NGINX_UI_NGINX_LOG_INDEXING_ENABLED`
|
||||
- 版本: `>= v2.2.0`
|
||||
|
||||
此選項啟用 Nginx 日誌的進階索引功能,提供高效能的日誌搜尋和分析能力。
|
||||
此選項啟用 Nginx 日誌的索引功能,提供高效能的日誌搜尋和分析能力。
|
||||
|
||||
#### 關閉時的行為(基礎模式)
|
||||
|
||||
當 `AdvancedIndexingEnabled` 為 `false` 時,Nginx UI 仍會從 Nginx 設定中發現日誌入口,並在日誌列表中顯示。在基礎模式下:
|
||||
當 `IndexingEnabled` 為 `false` 時,Nginx UI 仍會從 Nginx 設定中發現日誌入口,並在日誌列表中顯示。在基礎模式下:
|
||||
|
||||
- 可檢視已偵測到的日誌檔列表(基於簡單的輪轉規則進行分組),但不提供索引指標、文件計數與分片搜尋等進階功能。
|
||||
- 依據解析出的存取/錯誤日誌路徑,即時檢視(tail)仍可使用。
|
||||
|
||||
@@ -103,7 +103,7 @@
|
||||
|
||||
| 設定 | 環境變數 |
|
||||
|-------------------------|-----------------------------------------------|
|
||||
| AdvancedIndexingEnabled | NGINX_UI_NGINX_LOG_ADVANCED_INDEXING_ENABLED |
|
||||
| IndexingEnabled | NGINX_UI_NGINX_LOG_INDEXING_ENABLED |
|
||||
| IndexPath | NGINX_UI_NGINX_LOG_INDEX_PATH |
|
||||
|
||||
## Node
|
||||
|
||||
Reference in New Issue
Block a user