As I said, this is all permissions issue because you ran logstash as root, you need to fix those permissions.
Logstash is probably trying to write on the folder /usr/share/logstash/queue_data/main/ to use the persistent queue, but does not have permissions to do it, fix the permissions to the folder /usr/share/logstash.
What does your logstash.yml file looks like? You can remove the path for the persistent queue so logstash will recreate it.
There is not much else to do, you will need to fix the permissions as they appear.
Do you want to use persistent queues? If you want you will need to find a way to fix the permissions or use another directory where the logstash user can write.
if you do not want to use persistent queues, you can use the default memory queue, just comment the path.queue line.
Also, if you change the permissions for the path you should not have the same error, are you getting the exactly same error for the same path or is another path?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.