# How to start logstash as root

**URL:** https://discuss.elastic.co/t/how-to-start-logstash-as-root/155107
**Category:** Logstash
**Created:** [November 2, 2018, 3:43am UTC](https://discuss.elastic.co/t/how-to-start-logstash-as-root/155107 "2018-11-02T03:43:49Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![mancharagopan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mancharagopan/32/60266_2.png) [@mancharagopan](https://discuss.elastic.co/u/mancharagopan)
#### Post date: [November 2, 2018, 3:43am UTC](https://discuss.elastic.co/t/how-to-start-logstash-as-root/155107/1 "2018-11-02T03:43:49Z")

</div>

Hello,

Can anyone tell me how to start logstash as root?  
I am trying to use port 514 to syslog messages because some of my devices like WLC send syslog messages only to udp port 514.

---

<div class="post-metadata">

### Author: ![yaauie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yaauie/32/23363_2.png) [@yaauie](https://discuss.elastic.co/u/yaauie)
#### Post date: [November 2, 2018, 12:49pm UTC](https://discuss.elastic.co/t/how-to-start-logstash-as-root/155107/2 "2018-11-02T12:49:12Z")

</div>

I would advise against starting Logstash as a privileged user for security reasons; instead, configure your system to allow the Logstash user to bind to the port.

Relative answer here: [Logstash bind to port 514](https://discuss.elastic.co/t/logstash-bind-to-port-514/44022/2?u=yaauie)

---

<div class="post-metadata">

### Author: ![mancharagopan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mancharagopan/32/60266_2.png) [@mancharagopan](https://discuss.elastic.co/u/mancharagopan)
#### Post date: [November 2, 2018, 1:19pm UTC](https://discuss.elastic.co/t/how-to-start-logstash-as-root/155107/3 "2018-11-02T13:19:47Z")

</div>

Thanks for the reply! I found that link just after posting this post!

---

<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: [November 30, 2018, 1:19pm UTC](https://discuss.elastic.co/t/how-to-start-logstash-as-root/155107/4 "2018-11-30T13:19:51Z")

</div>

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