# Call Custom-Beats functions from another language than go

**URL:** <https://discuss.elastic.co/t/call-custom-beats-functions-from-another-language-than-go/193260>\
**Category:** Beats\
**Created:** [August 1, 2019, 6:50am UTC](https://discuss.elastic.co/t/call-custom-beats-functions-from-another-language-than-go/193260 "2019-08-01T06:50:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dev-Flo](https://avatars.discourse-cdn.com/v4/letter/d/ea5d25/32.png) [@Dev-Flo](https://discuss.elastic.co/u/Dev-Flo)\
**Post date:** [August 1, 2019, 6:50am UTC](https://discuss.elastic.co/t/call-custom-beats-functions-from-another-language-than-go/193260/1 "2019-08-01T06:50:36Z")

</div>

Hey,

I'm currently writing a custom Beat. However, the data I want to push with the Beat, I receive via a C# program. I dont want to store the data and then read it via filebeat because the beat is running on something like a gateway where I dont have much storage. Thus, I'd like to call the publish function of the beater in the best case via C# (C is also fine).

I've found out, that it is possible to export functions via the comment: //export functionname.  
However, this is not trivial for the Beat, because the custom Beat contains methods to a struct. In order to call these methods from another language, I also need to export the struct. To export the struct, I have to export the config.Config struct and beat.Client interface, which is cumbersome, if it is possible at all.

Is there any other way to call functions of a custom Beat from another language other than exporting them?

Thanks.

Best regards,  
Florian

---

<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:** [August 29, 2019, 8:50am UTC](https://discuss.elastic.co/t/call-custom-beats-functions-from-another-language-than-go/193260/2 "2019-08-29T08:50:39Z")

</div>

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