Support filelog watching in Windows.

This commit is contained in:
Jeremy Edwards
2020-12-21 23:56:49 +00:00
parent b951f24297
commit adc587f222
5 changed files with 45 additions and 20 deletions

View File

@@ -0,0 +1,20 @@
{
"plugin": "filelog",
"pluginConfig": {
"timestamp": "^time=\"(\\S*)\"",
"message": "msg=\"([^\n]*)\"",
"timestampFormat": "2006-01-02T15:04:05.999999999-07:00"
},
"logPath": "C:\\Program Files\\containerd\\containerd.log",
"lookback": "5m",
"bufferSize": 10,
"source": "docker-monitor",
"conditions": [],
"rules": [
{
"type": "temporary",
"reason": "BadCNIConfig",
"pattern": "failed to reload cni configuration.*"
}
]
}