ITRS-Group / monitor-merlin

Module for Effortless Redundancy and Loadbalancing In Naemon
https://itrs-group.github.io/monitor-merlin/
GNU General Public License v2.0
22 stars 14 forks source link

Import log: Ignore lines without a valid timestamp #21

Closed jacobbaungard closed 6 years ago

jacobbaungard commented 6 years ago

Using "mon log import" would previously result in a crash if the naemon log contained a line starting with "[not-a-timestamp]". This commit alters the import tool to ignore such cases.

Ignoring invalid log lines is already the default be behavior except when the line starts with "[".

Signed-off-by: Jacob Hansen jhansen@op5.com