# How to GET current netwatch host inside down-script

**URL:** <https://forum.mikrotik.com/t/how-to-get-current-netwatch-host-inside-down-script/158997>\
**Category:** Scripting\
**Created:** [June 25, 2022, 1:02pm UTC](https://forum.mikrotik.com/t/how-to-get-current-netwatch-host-inside-down-script/158997 "2022-06-25T13:02:01Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Jotne](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/jotne/32/56097_2.png) [@Jotne](https://forum.mikrotik.com/u/Jotne)\
**Post date:** [June 25, 2022, 6:19pm UTC](https://forum.mikrotik.com/t/how-to-get-current-netwatch-host-inside-down-script/158997/3 "2022-06-25T18:19:15Z")

</div>

See example where host and other variable are used to use same script for up/down logging here:  
[http://forum.mikrotik.com/t/tool-using-splunk-to-analyse-mikrotik-logs-4-0-graphing-everything/153043/3](http://forum.mikrotik.com/t/tool-using-splunk-to-analyse-mikrotik-logs-4-0-graphing-everything/153043/3)

---

_[View the full topic](https://forum.mikrotik.com/t/how-to-get-current-netwatch-host-inside-down-script/158997)._
