# Unit test Logstash pipeline - Need to tokenize the pipeline config file

**URL:** <https://discuss.elastic.co/t/unit-test-logstash-pipeline-need-to-tokenize-the-pipeline-config-file/178371>\
**Category:** Logstash\
**Created:** [April 25, 2019, 6:16am UTC](https://discuss.elastic.co/t/unit-test-logstash-pipeline-need-to-tokenize-the-pipeline-config-file/178371 "2019-04-25T06:16:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SManorathna](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/smanorathna/32/42626_2.png) [@SManorathna](https://discuss.elastic.co/u/SManorathna)\
**Post date:** [April 25, 2019, 6:16am UTC](https://discuss.elastic.co/t/unit-test-logstash-pipeline-need-to-tokenize-the-pipeline-config-file/178371/1 "2019-04-25T06:16:19Z")

</div>

Hi,

I am writing a unit test for the logstash pipeline. I need to extract all the grok type filters and test those in an isolated environment. Tests will be executed for each filter separately. I Can't use java for this filter tokenizations and any of you know any proper approach (scripting mechanism) or technology that I can use to extract the subfilters from the configuration file? Are there any mechanisms provided within logstash or any other developed framework for this?

---

<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:** [May 23, 2019, 6:16am UTC](https://discuss.elastic.co/t/unit-test-logstash-pipeline-need-to-tokenize-the-pipeline-config-file/178371/2 "2019-05-23T06:16:21Z")

</div>

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