# Roles needed to write Logstash events

**URL:** <https://discuss.elastic.co/t/roles-needed-to-write-logstash-events/197195>\
**Category:** Elasticsearch\
**Created:** [August 28, 2019, 7:23pm UTC](https://discuss.elastic.co/t/roles-needed-to-write-logstash-events/197195 "2019-08-28T19:23:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![zpraxis](https://avatars.discourse-cdn.com/v4/letter/z/5daacb/32.png) [@zpraxis](https://discuss.elastic.co/u/zpraxis)\
**Post date:** [August 28, 2019, 7:23pm UTC](https://discuss.elastic.co/t/roles-needed-to-write-logstash-events/197195/1 "2019-08-28T19:23:42Z")

</div>

Hi there!

I am setting up Logstash to write events in Elasticsearch, and am configuring some security as well, e.g. I intend to use basic user/password authentication. In that sense, I have already created a role called `logstash_write` as indicated in the documentation, and have also created a user for Logstash and mapped that role to such user.

Everything is working fine. My question is: do I have to create the `logstash_reader` role as well, and assign it to my Logstash user? Don't know if at some point Logstash needs to read something from the indices it creates.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [August 29, 2019, 7:46am UTC](https://discuss.elastic.co/t/roles-needed-to-write-logstash-events/197195/2 "2019-08-29T07:46:36Z")

</div>

that depends if you have set up an elasticsearch input or a filter.

---

<div class="post-metadata">

**Author:** ![zpraxis](https://avatars.discourse-cdn.com/v4/letter/z/5daacb/32.png) [@zpraxis](https://discuss.elastic.co/u/zpraxis)\
**Post date:** [August 30, 2019, 3:19am UTC](https://discuss.elastic.co/t/roles-needed-to-write-logstash-events/197195/3 "2019-08-30T03:19:31Z")

</div>

I see. For now, I only have an **elasticsearch output** section in my `.conf` file.

Thanks.

---

<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:** [September 27, 2019, 3:19am UTC](https://discuss.elastic.co/t/roles-needed-to-write-logstash-events/197195/4 "2019-09-27T03:19:35Z")

</div>

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