# Cookiecutter Template for writing ingest processors

**URL:** <https://discuss.elastic.co/t/cookiecutter-template-for-writing-ingest-processors/52985>\
**Category:** Elasticsearch\
**Created:** [June 16, 2016, 11:43am UTC](https://discuss.elastic.co/t/cookiecutter-template-for-writing-ingest-processors/52985 "2016-06-16T11:43:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [June 16, 2016, 11:43am UTC](https://discuss.elastic.co/t/cookiecutter-template-for-writing-ingest-processors/52985/1 "2016-06-16T11:43:13Z")

</div>

Hey,

I have created a cookiecutter template to ease the writing of own processors. Cookiecutter is a templating tool written in python. Using this all you need to do is to run

```auto
cookiecutter gh:spinscale/cookiecutter-elasticsearch-ingest-processor

```

and answer four questions, and you get the basic java classes, plus test classes and sample rest tests in your projects.

![Sample output](https://files.slack.com/files-pri/T0CUZ52US-F1HF45SP2/output.gif?pub_secret=2a06b3c0d3)

[Here](https://github.com/spinscale/cookiecutter-elasticsearch-ingest-processor) is the github project.

Hope it helps a bit.

--Alex

---

<div class="post-metadata">

**Author:** ![Joe](https://avatars.discourse-cdn.com/v4/letter/j/b9e5f3/32.png) [@Joe](https://discuss.elastic.co/u/Joe)\
**Post date:** [April 17, 2017, 2:47pm UTC](https://discuss.elastic.co/t/cookiecutter-template-for-writing-ingest-processors/52985/2 "2017-04-17T14:47:58Z")

</div>

Is this Python 2 or 3 ?

---

<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 5, 2017, 10:01pm UTC](https://discuss.elastic.co/t/cookiecutter-template-for-writing-ingest-processors/52985/3 "2017-07-05T22:01:07Z")

</div>


