honzahommer / grok-js

Regular expression template library for Node.js inspired by logstash grok filter module
ISC License
14 stars 6 forks source link

Supported Features #15

Closed lcharbon closed 4 years ago

lcharbon commented 4 years ago

I am trying to implement this grok pattern. It includes custom regex and patterns referencing other patterns. Is this possible in grok-js? The file seems to load fine but all I seem to be getting as a return is null.

honzahommer commented 4 years ago

@lcharbon Yes, it is possible. https://github.com/honzahommer/grok-js/blob/00c6115c847bd14da0dedf43edeb2ed53a05f8fe/lib/patterns/mongodb#L1-L4