Skip to content

Commit cb67ae6

Browse files
committed
refactor doc: logs-alerting
1 parent 914777a commit cb67ae6

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

config/_default/config.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,16 @@ enableEmoji = true
66
enableGitInfo = true
77
enableRobotsTXT = true
88
languageCode = "en-US"
9-
paginate = 7
109
rssLimit = 10
1110

1211
# Multilingual
1312
defaultContentLanguage = "en"
1413
disableLanguages = ["de", "nl"]
1514
# defaultContentLanguageInSubdir = true
1615

16+
[pagination]
17+
pagerSize = 7
18+
1719
# add redirects/headers
1820
[outputs]
1921
home = ["HTML", "RSS", "REDIRECTS", "HEADERS", "JSON"]

content/zh/docs/usage/logs-alerting.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,11 @@ ElasticSearch 支持不同的查询语法,比如 DSL、KQL、Lucene、EQL、SQ
5555

5656
注意,为了避免犯错,建议字段后面的冒号`:`前后都不要加空格。另外,不同的条件之间可以使用 AND、OR 连接,比如 `status:active AND age:>=10`。更多写法请参考 [ElasticSearch 的官方文档](https://www.elastic.co/docs/reference/query-languages/query-dsl/query-dsl-query-string-query)
5757

58+
## 告警事件中能否展示日志原文
59+
60+
开源版本的夜莺没法在告警事件中展示日志原文。因为夜莺采用的是 ElasticSearch 的统计语法,通常是一个 count 之类的函数,ElasticSearch 最终返回的只是一个数字,不包含日志原文。
61+
62+
如果对此需求非常迫切,也可以试试 Flashduty 告警功能,Flashduty 针对 ElasticSearch 的告警功能是免费的。
63+
64+
- [Flashduty 注册体验地址](https://console.flashcat.cloud)
65+
- [Flashduty 日志监控如何获取日志原文](https://flashcat.cloud/blog/flashduty-logs-monitor-with-raw-records/)

0 commit comments

Comments
 (0)