Hi Everyone,
Hope you all are doing great !!
I'm trying to parse mulitple expression in multiline in my filebeat configuartion but i'm not able to meet the expected result.
Type of logs i want to parse:
expr1: 2018-07-13 09:34:36,553 CustomLogWrapper.java
expr2: Jul 13, 2018 9:30:35 AM com.sun.jersey.spi.container.servlet.WebComponent filterFormParameters
expr3: 13-Jul-2018 09:35:09.286 FINE [http-nio-8080-exec-65] c
Multiline expression i'm using:
^(expr1|expr2 | expr3)
multiline.pattern: '^(([0-9]{4}-[0-9]{2}-[0-9]{2}) | ([a-zA-z]{3} [0-9]{2}, [0-9]{4} [0-9]{2}:[0-9]{2}:[0-9]{2} [AM|PM]) | ([0-9]{2}-[a-zA-z]{3}-[0-9]{4}))'
multiline.negate: true
multiline.match: after
Note: expression1 is getting parsed correctly while other two are not working. I have tried only two expression as well but i failed.
Please help !