1
我想調整適合我的時區的返回日期時間值。我的通知看起來像這樣:如何調整@timestamp到當地時區Elastalert
An abnormally low number of events occurred around 2016-09-28 22:49 CEST.
這是適當的日期引用到我的時區。 在通知字段的部分我得到的時間爲UTC-0區:
@timestamp: 2016-09-28T20:49:44.711696Z
我曾嘗試使用增強這種方式, 文件中..\elastalert\elastalert_modules
我也是在規則添加使用:
match_enhancements:
- "elastalert_modules.my_enhancements.TimeEnhancement"
這只是測試,而不是最終的解決方案
我試着寫一個替代的解決方案,沒有硬編碼領域名稱,但我還沒有能夠得到它的工作..如果我不行更新我的問題在github。 https://github.com/Yelp/elastalert/issues/861 – Peter