# Finding the hostname inside the javascript processor script

**URL:** <https://discuss.elastic.co/t/finding-the-hostname-inside-the-javascript-processor-script/311054>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [July 31, 2022, 8:48am UTC](https://discuss.elastic.co/t/finding-the-hostname-inside-the-javascript-processor-script/311054 "2022-07-31T08:48:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saeed\_Ektesabi2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saeed_ektesabi2/32/102983_2.png) [@Saeed\_Ektesabi2](https://discuss.elastic.co/u/Saeed_Ektesabi2)\
**Post date:** [July 31, 2022, 8:48am UTC](https://discuss.elastic.co/t/finding-the-hostname-inside-the-javascript-processor-script/311054/1 "2022-07-31T08:48:31Z")

</div>

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?  
Thanks

---

<div class="post-metadata">

**Author:** ![Andrea\_Spacca](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrea_spacca/32/76976_2.png) [@Andrea\_Spacca](https://discuss.elastic.co/u/Andrea_Spacca)\
**Post date:** [August 1, 2022, 2:36am UTC](https://discuss.elastic.co/t/finding-the-hostname-inside-the-javascript-processor-script/311054/2 "2022-08-01T02:36:54Z")

</div>

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?

> [@Saeed\_Ektesabi2](#):
>
> Also, where can I see the whole available modules?

Are you referring to the Filebeat/Metricbeat modules?

Here you can find the modules lists for both:

> **[Modules | Filebeat Reference \[8.3\] | Elastic](https://www.elastic.co/guide/en/beats/filebeat/8.3/filebeat-modules.html)**

> **[Modules | Metricbeat Reference \[8.3\] | Elastic](https://www.elastic.co/guide/en/beats/metricbeat/8.3/metricbeat-modules.html)**

---

<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, 2022, 4:37am UTC](https://discuss.elastic.co/t/finding-the-hostname-inside-the-javascript-processor-script/311054/3 "2022-08-29T04:37:01Z")

</div>

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