Initial commit: LogMaster with Viewer Collector Monitor modes
This commit is contained in:
12
.env.monitor
Normal file
12
.env.monitor
Normal file
@@ -0,0 +1,12 @@
|
||||
# Log Viewer - MONITOR MODE
|
||||
LOG_MODE=monitor
|
||||
PORT=8082
|
||||
HOST=0.0.0.0
|
||||
|
||||
# Monitor settings
|
||||
MONITOR_ENABLED=true
|
||||
MONITOR_SCAN_INTERVAL=60000
|
||||
MONITOR_STORAGE_DIR=./monitor-data
|
||||
|
||||
# Rules can be configured via the GUI or as JSON:
|
||||
# MONITOR_RULES=[{"id":"rule-1","name":"DB Admin Login","enabled":true,"sources":["sample-logs/app.log"],"patterns":["admin.*authenticated","GRANT"],"patternLogic":"any","timeRange":{"type":"week"},"notifications":[{"type":"webhook","url":"http://localhost:9999/hook"}],"maxLinesInMessage":20,"cooldownMs":300000,"matchCount":0,"lastTriggered":null}]
|
||||
Reference in New Issue
Block a user