Finding the hostname inside the javascript processor script

Hi all, I am trying to find the hostname inside the javascript script code.
I tried to get it using the "os" module, but it seems that it is not available.
Are there any other options to achieve this?
Also, where can I see the whole available modules?

hello @Saeed_Ektesabi2 , welcome to the Elastic community!

I'd need some more information in order to answer you questions.

What's the beat you are trying to add a processor script to? What's the version you are using?

What do you mean exactly with the "os" module?

Are you referring to the Filebeat/Metricbeat modules?

Here you can find the modules lists for both:

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