Closed palmerabollo closed 8 years ago
Hi,
Long time ago, Pile would have been the answer, but its now deprecated. Basically what you need to do is to maintain a list of grok instance and try to match expression. Something like https://github.com/thekrakken/java-grok/blob/master/src/main/java/oi/thekraken/grok/api/Pile.java
Thanks, Anthony. Why did you deprecate it? It looks like something useful to me. In fact I think that Grok
and Pile
could implement the same interface (with addPattern
, match
, etc) to work with them interchangeably.
Imagine you want to match a
log
against two grok expressions, to see if the log matches any of the grok expressions.Is that possible? The following code doesn't work:
But it works with a single call to
addPattern
:I think I'm missing something. Thanks