# \[plugin-development\] Custom X-Pack action plugin

**URL:** <https://discuss.elastic.co/t/plugin-development-custom-x-pack-action-plugin/220179>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-monitoring, elastic-stack-alerting\
**Created:** [February 20, 2020, 11:56am UTC](https://discuss.elastic.co/t/plugin-development-custom-x-pack-action-plugin/220179 "2020-02-20T11:56:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![klashxx](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/klashxx/32/63008_2.png) [@klashxx](https://discuss.elastic.co/u/klashxx)\
**Post date:** [February 20, 2020, 11:56am UTC](https://discuss.elastic.co/t/plugin-development-custom-x-pack-action-plugin/220179/1 "2020-02-20T11:56:02Z")

</div>

Hi every one.

This is the situation, I want to develop a **new X-Pack action plugin** to implement some missing functionality in the default catalog ([https://www.elastic.co/guide/en/x-pack/6.2/actions.html](https://www.elastic.co/guide/en/x-pack/6.2/actions.html)).

The documentation is very concise and don’t know where to start, _I have even doubts_ whether this is possible as an completely external plugin.

Can anyone point a guideline to accomplish this task in the best canonical way?

Any advice will be really welcome, I’m new in Elastic and kind of lost.

Many thanks!

---

<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:** [February 20, 2020, 1:13pm UTC](https://discuss.elastic.co/t/plugin-development-custom-x-pack-action-plugin/220179/2 "2020-02-20T13:13:11Z")

</div>

Hey,

I suppose you are referring to actions in the alerting code. This is currently not extensible with external plugins, but needs to be within the alerting/watcher plugin. If you think others can benefit from this as well, feel free to open a github issue to discuss if people are interested in this functionality.

Thanks!

--Alex

---

<div class="post-metadata">

**Author:** ![klashxx](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/klashxx/32/63008_2.png) [@klashxx](https://discuss.elastic.co/u/klashxx)\
**Post date:** [February 20, 2020, 1:35pm UTC](https://discuss.elastic.co/t/plugin-development-custom-x-pack-action-plugin/220179/3 "2020-02-20T13:35:26Z")

</div>

Hi Alex!, many thanks for your help and the quick response.

Yes, I was talking about the alerting actions. This is a very custom functionality so I doubt some else will be interested.

Let me reformulate the question: Suppose I want to extend the XPack watcher email action ([https://github.com/elastic/elasticsearch/tree/95977f4db9f5ccf21278adcc4e117e508ede6b29/x-pack/plugin/watcher/src/main/java/org/elasticsearch/xpack/watcher/actions/email](https://github.com/elastic/elasticsearch/tree/95977f4db9f5ccf21278adcc4e117e508ede6b29/x-pack/plugin/watcher/src/main/java/org/elasticsearch/xpack/watcher/actions/email)), is this possible?

Are there any other way to achieve this?

Could I write an external plugin to mimic this functionality?

Not sure If I have expressed myself clearly.

As I said, I really appreciate your help, this Elastic world is huge ….

Cheers

Juan Diego

---

<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:** [February 20, 2020, 2:02pm UTC](https://discuss.elastic.co/t/plugin-development-custom-x-pack-action-plugin/220179/4 "2020-02-20T14:02:50Z")

</div>

If it is very customized, it is unlikely that it will be taken into the main branch. the only other thing I see is that there is infrastructure to be able to register own inputs and actions - which right now is not there.

Maybe open an issue in the Elasticsearch repository to discuss this further, if that is feasible for the development team or not.

---

<div class="post-metadata">

**Author:** ![klashxx](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/klashxx/32/63008_2.png) [@klashxx](https://discuss.elastic.co/u/klashxx)\
**Post date:** [February 21, 2020, 10:44am UTC](https://discuss.elastic.co/t/plugin-development-custom-x-pack-action-plugin/220179/5 "2020-02-21T10:44:33Z")

</div>

Ok, Thanks again Alex

---

<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 20, 2020, 10:44am UTC](https://discuss.elastic.co/t/plugin-development-custom-x-pack-action-plugin/220179/6 "2020-03-20T10:44:34Z")

</div>

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