Log File Categorization and Anomaly Analysis Using Grammar Inference