# Error logstash setup

**URL:** <https://discuss.elastic.co/t/error-logstash-setup/68191>\
**Category:** Logstash\
**Created:** [December 6, 2016, 3:55pm UTC](https://discuss.elastic.co/t/error-logstash-setup/68191 "2016-12-06T15:55:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![bob-bza](https://avatars.discourse-cdn.com/v4/letter/b/9f8e36/32.png) [@bob-bza](https://discuss.elastic.co/u/bob-bza)\
**Post date:** [December 6, 2016, 3:55pm UTC](https://discuss.elastic.co/t/error-logstash-setup/68191/1 "2016-12-06T15:55:16Z")

</div>

I was trying to configure logstash on my instance  
i was getting facing issue.  
i dont know if i was doing anything wrong  
I tried on both ubuntu & centos i was facing same issue with 5.0.1 but 2.4 works for me.I wan't to use latest version.  
This repo i was trying to use.  
my instances was aws M4.2xlarge i was using  
[https://www.elastic.co/guide/en/logstash/current/installing-logstash.html](https://www.elastic.co/guide/en/logstash/current/installing-logstash.html)

[root@ip-\*\*\*\*\*\*\*\*]# service logstash status  
logstash: unrecognized service

I was doing these setps to configure logstash  
rpm --import [https://artifacts.elastic.co/GPG-KEY-elasticsearch](https://artifacts.elastic.co/GPG-KEY-elasticsearch)  
Add the following in your /etc/yum.repos.d/ directory in a file with a .repo suffix, for example logstash.repo

[logstash-5.x]  
name=Elastic repository for 5.x packages  
baseurl=https://artifacts.elastic.co/packages/5.x/yum  
gpgcheck=1  
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch  
enabled=1  
autorefresh=1  
type=rpm-md  
And your repository is ready for use. You can install it with:

sudo yum install logstash

---

<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:** [December 6, 2016, 6:32pm UTC](https://discuss.elastic.co/t/error-logstash-setup/68191/2 "2016-12-06T18:32:25Z")

</div>

What does `rpm -qa|grep logstash` show?

---

<div class="post-metadata">

**Author:** ![bob-bza](https://avatars.discourse-cdn.com/v4/letter/b/9f8e36/32.png) [@bob-bza](https://discuss.elastic.co/u/bob-bza)\
**Post date:** [December 6, 2016, 7:03pm UTC](https://discuss.elastic.co/t/error-logstash-setup/68191/3 "2016-12-06T19:03:24Z")

</div>

> [@warkolm](#):
>
> rpm -qa|grep logstash

[ec2-user@ip ~]# rpm -qa|grep logstash  
logstash-5.0.2-1.noarch  
[ec2-user@ip ~]# service logstash status  
logstash: unrecognized service

---

<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:** [December 6, 2016, 7:50pm UTC](https://discuss.elastic.co/t/error-logstash-setup/68191/4 "2016-12-06T19:50:34Z")

</div>

What OS?

---

<div class="post-metadata">

**Author:** ![bob-bza](https://avatars.discourse-cdn.com/v4/letter/b/9f8e36/32.png) [@bob-bza](https://discuss.elastic.co/u/bob-bza)\
**Post date:** [December 6, 2016, 8:18pm UTC](https://discuss.elastic.co/t/error-logstash-setup/68191/5 "2016-12-06T20:18:59Z")

</div>

centos.

---

<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:** [January 3, 2017, 8:19pm UTC](https://discuss.elastic.co/t/error-logstash-setup/68191/6 "2017-01-03T20:19:24Z")

</div>

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