# Creating custom modules from terminal

**URL:** <https://discuss.elastic.co/t/creating-custom-modules-from-terminal/145720>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [August 23, 2018, 12:02pm UTC](https://discuss.elastic.co/t/creating-custom-modules-from-terminal/145720 "2018-08-23T12:02:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![souravtyson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/souravtyson/32/45427_2.png) [@souravtyson](https://discuss.elastic.co/u/souravtyson)\
**Post date:** [August 23, 2018, 12:02pm UTC](https://discuss.elastic.co/t/creating-custom-modules-from-terminal/145720/1 "2018-08-23T12:02:57Z")

</div>

Hi Team,

I have been trying to create custom module for vmstat command.  
Earlier i created tomcat access log module by copying the existing module.

But i wanted to try the steps available in the below link as the above steps tedious and error prone.  
[https://www.elastic.co/guide/en/beats/devguide/6.x/filebeat-modules-devguide.html](https://www.elastic.co/guide/en/beats/devguide/6.x/filebeat-modules-devguide.html)

while running the make command (make create-module MODULE={module}) i get following error.  
**make no rule to make target 'create-module' stop**

Right now i am using 6.3.2 version of filebeat by extracting the tar file

---

<div class="post-metadata">

**Author:** ![pierhugues](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pierhugues/32/48383_2.png) [@pierhugues](https://discuss.elastic.co/u/pierhugues)\
**Post date:** [August 24, 2018, 2:54pm UTC](https://discuss.elastic.co/t/creating-custom-modules-from-terminal/145720/2 "2018-08-24T14:54:16Z")

</div>

@souravtyson The guide assumes that you are running the command from a clone of the [beats repository](http://github.com/elastic/beats/)

When you run the command from the tar, _make_ doesn't find any _Makefile_ in the directory.

---

<div class="post-metadata">

**Author:** ![souravtyson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/souravtyson/32/45427_2.png) [@souravtyson](https://discuss.elastic.co/u/souravtyson)\
**Post date:** [August 28, 2018, 7:56am UTC](https://discuss.elastic.co/t/creating-custom-modules-from-terminal/145720/3 "2018-08-28T07:56:03Z")

</div>

Thanks for the reply @pierhugues  
so how can i create the module in case i am using tar file?

---

<div class="post-metadata">

**Author:** ![pierhugues](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pierhugues/32/48383_2.png) [@pierhugues](https://discuss.elastic.co/u/pierhugues)\
**Post date:** [August 28, 2018, 12:24pm UTC](https://discuss.elastic.co/t/creating-custom-modules-from-terminal/145720/4 "2018-08-28T12:24:19Z")

</div>

@souravtyson I would use a clone of the repository, because you will get tooling for testing your modules or your ingest pipeline.

---

<div class="post-metadata">

**Author:** ![souravtyson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/souravtyson/32/45427_2.png) [@souravtyson](https://discuss.elastic.co/u/souravtyson)\
**Post date:** [August 28, 2018, 1:05pm UTC](https://discuss.elastic.co/t/creating-custom-modules-from-terminal/145720/5 "2018-08-28T13:05:08Z")

</div>

@pierhugues can you tell me the steps to build filebeat and the its modules.

thanks

---

<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:** [September 25, 2018, 1:05pm UTC](https://discuss.elastic.co/t/creating-custom-modules-from-terminal/145720/6 "2018-09-25T13:05:11Z")

</div>

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