-
Notifications
You must be signed in to change notification settings - Fork 633
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #961 from smileusd/upstream_add_black_list_in_log_…
…watcher add black list to aviod take too much efforts to translate in file log watcher
- Loading branch information
Showing
4 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"plugin": "filelog", | ||
"pluginConfig": { | ||
"timestamp": "^.{15}", | ||
"message": "(?i)Currently unreadable.*sectors|(?i)Offline uncorrectable sectors", | ||
"timestampFormat": "Jan _2 15:04:05" | ||
}, | ||
"logPath": "/var/log/messages", | ||
"lookback": "10h", | ||
"bufferSize": 1, | ||
"source": "disk-monitor", | ||
"skipList": [ " audit:", " audit[" ], | ||
"conditions": [ | ||
{ | ||
"type": "DiskBadBlock", | ||
"reason": "DiskBadBlock", | ||
"message": "Disk no bad block" | ||
}, | ||
], | ||
"rules": [ | ||
{ | ||
"type": "permanent", | ||
"condition": "DiskBadBlock", | ||
"reason": "DiskBadBlock", | ||
"pattern": ".*([1-9]\\d{2,}) (Currently unreadable.*sectors|Offline uncorrectable sectors).*" | ||
}, | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters