Generate logstash grok patterns from java code.