# Metricbeat Custom Module Registration issue

**URL:** <https://discuss.elastic.co/t/metricbeat-custom-module-registration-issue/298101>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [February 24, 2022, 1:02am UTC](https://discuss.elastic.co/t/metricbeat-custom-module-registration-issue/298101 "2022-02-24T01:02:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tweet2santosh86](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tweet2santosh86/32/100531_2.png) [@tweet2santosh86](https://discuss.elastic.co/u/tweet2santosh86)\
**Post date:** [February 24, 2022, 1:02am UTC](https://discuss.elastic.co/t/metricbeat-custom-module-registration-issue/298101/1 "2022-02-24T01:02:55Z")

</div>

Hello Team,

We are trying to create custom metricbeat module by following the link [Creating a Metricset | Beats Developer Guide [master] | Elastic](https://www.elastic.co/guide/en/beats/devguide/current/creating-metricsets.html).. but it seems the new module is not getting registered.

We are not getting any log for the custom module from the location ../metricbeat/logs/XXXXXXXX.ndjson file although we have put logs in our metricsets using the go module "[github.com/elastic/beats/v7/libbeat/logp](http://github.com/elastic/beats/v7/libbeat/logp)" with logp.Info..

We tried to solve the issue by following the link [Error running the "metricbeat test modules" command: not registered, module not found](https://discuss.elastic.co/t/error-running-the-metricbeat-test-modules-command-not-registered-module-not-found/128576) and the file present in ../go/src/github.com/beats/metricbeat/mb/example\_module\_test.go. Referring which we created a ${module}.go file with init and New method also.. Still the issue did not resolved..

My file structure for custom module is as follows:

Where kyndryl.go I have created as a part of debugging referring system.go in system module but other files automatically generated as a part of the command "make create-metricset". I have put info logs in all the module with the logp go module.

Request for your help in this regard.

The output is as follows:

```auto
santosh:kyndryl$ tree
.
├── doc.go
├── fields.go
├── ibm
│ ├── ibm.go
│ └── _meta
│ ├── data.json
│ ├── docs.asciidoc
│ └── fields.yml
├── kyndryl.go
└── _meta
    ├── config.yml
    ├── docs.asciidoc
    └── fields.yml

```

Where kyndryl.go I have created as a part of debugging referring system.go in system module but other files automatically generated as a part of the command "make create-metricset". I have put info logs in all the module with the logp go module.

```auto
santosh:metricbeat$ pwd
/home/santosh/go/src/github.com/beats/metricbeat
santosh:metricbeat$ ./metricbeat test modules kyndryl
Error getting metricbeat modules: module initialization error: disabled module

```

---

<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:** [March 24, 2022, 3:03am UTC](https://discuss.elastic.co/t/metricbeat-custom-module-registration-issue/298101/2 "2022-03-24T03:03:28Z")

</div>

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