# How to execute remote command in elastic?

**URL:** <https://discuss.elastic.co/t/how-to-execute-remote-command-in-elastic/167992>\
**Category:** Elasticsearch\
**Created:** [February 12, 2019, 9:11am UTC](https://discuss.elastic.co/t/how-to-execute-remote-command-in-elastic/167992 "2019-02-12T09:11:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vsalunkhe](https://avatars.discourse-cdn.com/v4/letter/v/eada6e/32.png) [@vsalunkhe](https://discuss.elastic.co/u/vsalunkhe)\
**Post date:** [February 12, 2019, 9:11am UTC](https://discuss.elastic.co/t/how-to-execute-remote-command-in-elastic/167992/1 "2019-02-12T09:11:04Z")

</div>

Hi,

I am a newbie in elastic. I have a usecase wherein I need to execute some command on the remote machine.  
Further I also need to send the results to elasticsearch for further monitoring.  
Is there any option to execute remote commands?

Setup details:  
Xpack : trial version  
OS: Centos 7  
Elastic Version : 6.5.4

Thanks,  
Vrushali S.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 12, 2019, 9:12am UTC](https://discuss.elastic.co/t/how-to-execute-remote-command-in-elastic/167992/2 "2019-02-12T09:12:13Z")

</div>

You can call an API via Alerting, but there's nothing else you can do.

---

<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 12, 2019, 9:12am UTC](https://discuss.elastic.co/t/how-to-execute-remote-command-in-elastic/167992/3 "2019-03-12T09:12:15Z")

</div>

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