This example shows how to use the regex:reader to process a somewhat arbitrary flat file format. In this example we process a Log4J log file, splitting each log out into a record and then splitting each log into 4 fields for , , and .
See:
- The "Main" class in src/main/java/example/Main.java.
- The input message in input.log.
- smooks-config.xml.
mvn clean package
mvn exec:exec