Pattern Translation This tries to generate a grok regular expression from a log4j PatternLayout format that parses the logfile output generated by that format. You will want to check and refine the pattern with the matcher . This is currently very experimental - don't expect it to work or anything. :-) Please report problems and, if possible, make good suggestions how to translate troublesome placeholders to a appropriate grok expressions.It would be comparatively easy to extend this to other logging libraries like logback etc. if someone comes up with good suggestions how to translate the different placeholders. The, more or less, specification for the log4j pattern translation is here .Please enter the log4j format and then press You can also just fill this with a random example. The log4j format (e.g. %d{ISO8601} %-14.14c{1}- %m%n) for which you want to create a grok pattern: