# Beat for oracle database

**URL:** <https://discuss.elastic.co/t/beat-for-oracle-database/84258>\
**Category:** Beats\
**Tags:** beats-development\
**Created:** [May 2, 2017, 12:41pm UTC](https://discuss.elastic.co/t/beat-for-oracle-database/84258 "2017-05-02T12:41:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_DNP](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/daniel_dnp/32/16374_2.png) [@Daniel\_DNP](https://discuss.elastic.co/u/Daniel_DNP)\
**Post date:** [May 2, 2017, 12:41pm UTC](https://discuss.elastic.co/t/beat-for-oracle-database/84258/1 "2017-05-02T12:41:16Z")

</div>

I don't want to span the issue "1935" on github ([Metricbeat: Oracle Module · Issue #1935 · elastic/beats · GitHub](https://github.com/elastic/beats/issues/1935)) therefor I opened this topic.

@andrewkroh and @ruflin recommended me to write a module for metricbeat.

In the developer guide I read:

> As a developer, you can use Metricbeat in two different ways:

> - Extend Metricbeat directly
> - Create your own Beat and use Metricbeat as a library

I tried to "Extend Metricbeat directly" but I have no clue how to test or execute my code since there is no main function anywhere (see [https://github.com/odbaeu/oracledb\_mb\_mod](https://github.com/odbaeu/oracledb_mb_mod)).

Should I better start with "Create your own Beat and use Metricbeat as a library"?

Thanks a lot!

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [May 2, 2017, 1:58pm UTC](https://discuss.elastic.co/t/beat-for-oracle-database/84258/2 "2017-05-02T13:58:16Z")

</div>

Here's the guide: [https://www.elastic.co/guide/en/beats/metricbeat/current/creating-beat-from-metricbeat.html](https://www.elastic.co/guide/en/beats/metricbeat/current/creating-beat-from-metricbeat.html)

You already have the module, so you just need to change up the directory structure and generate the `main`.

---

<div class="post-metadata">

**Author:** ![Daniel\_DNP](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/daniel_dnp/32/16374_2.png) [@Daniel\_DNP](https://discuss.elastic.co/u/Daniel_DNP)\
**Post date:** [May 9, 2017, 8:46am UTC](https://discuss.elastic.co/t/beat-for-oracle-database/84258/3 "2017-05-09T08:46:59Z")

</div>

Thank you @andrewkroh I finally understood what you were talking about 🙂

---

<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:** [June 6, 2017, 9:01am UTC](https://discuss.elastic.co/t/beat-for-oracle-database/84258/4 "2017-06-06T09:01:13Z")

</div>

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