LayerLog: Log sequence anomaly detection based on hierarchical semantics