# Javascript library similar to grok plugin

**URL:** <https://discuss.elastic.co/t/javascript-library-similar-to-grok-plugin/134534>\
**Category:** Logstash\
**Created:** [June 5, 2018, 6:38am UTC](https://discuss.elastic.co/t/javascript-library-similar-to-grok-plugin/134534 "2018-06-05T06:38:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jkburges](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jkburges/32/31933_2.png) [@jkburges](https://discuss.elastic.co/u/jkburges)\
**Post date:** [June 5, 2018, 6:38am UTC](https://discuss.elastic.co/t/javascript-library-similar-to-grok-plugin/134534/1 "2018-06-05T06:38:47Z")

</div>

I am researching the possibility of developing a desktop app that allows parsing of log files. As a personal learning exercise, I'd like to do it using the electronjs framework.

I really like the logstash-grok DSL for configuring parsing of log lines, specifically the set of predefined field types, and common log file formats.

Does anyone know of anything similar in the javascript world? I haven't been able to turn up anything in google, FWIW. There are "lower level" pattern matching libraries, such as [https://z-pattern-matching.github.io/](https://z-pattern-matching.github.io/) but without all the nice extra stuff on top that grok has.

Cheers,  
Jon

---

<div class="post-metadata">

**Author:** ![jkburges](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jkburges/32/31933_2.png) [@jkburges](https://discuss.elastic.co/u/jkburges)\
**Post date:** [June 5, 2018, 10:19am UTC](https://discuss.elastic.co/t/javascript-library-similar-to-grok-plugin/134534/2 "2018-06-05T10:19:08Z")

</div>

Nevermind, I found [https://github.com/Beh01der/node-grok](https://github.com/Beh01der/node-grok) which looks as though it might do the job.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 3, 2018, 10:19am UTC](https://discuss.elastic.co/t/javascript-library-similar-to-grok-plugin/134534/3 "2018-07-03T10:19:12Z")

</div>

Closed on July 3, 2018, 10:19am UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
