# Add Logstash to autorun services

**URL:** <https://discuss.elastic.co/t/add-logstash-to-autorun-services/52296>\
**Category:** Logstash\
**Created:** [June 9, 2016, 7:47am UTC](https://discuss.elastic.co/t/add-logstash-to-autorun-services/52296 "2016-06-09T07:47:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bibl2008](https://avatars.discourse-cdn.com/v4/letter/b/c4cdca/32.png) [@bibl2008](https://discuss.elastic.co/u/bibl2008)\
**Post date:** [June 9, 2016, 7:47am UTC](https://discuss.elastic.co/t/add-logstash-to-autorun-services/52296/1 "2016-06-09T07:47:05Z")

</div>

Hello,  
Please help.  
**1. I download Logstash 2.3.1 All Plugins**  
**2. unzip to /opt/elastic/logstash-2.3.1/**  
**3. in /opt/elastic/logstash-2.3.1/bin add config.conf:**  
input {  
beats {  
port =\> 5044  
}  
}  
output {  
elasticsearch {  
hosts =\> "[srvis074.rccf.ru:9200](http://srvis074.rccf.ru:9200)"  
manage\_template =\> false  
index =\> "%{[@metadata][beat]}-%{+YYYY.MM.dd}"  
document\_type =\> "%{[@metadata][type]}"  
}  
}  
**4. started the logstash** :  
[root@server logstash-2.3.1]# bin/logstash agent -f bin/config.conf  
Settings: Default pipeline workers: 4  
Pipeline main started

Questions:

1. Does it is normal that I see only **Pipeline main started** after started the logstash?
2. How I can add the logstash to autorun services?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [June 12, 2016, 11:21am UTC](https://discuss.elastic.co/t/add-logstash-to-autorun-services/52296/2 "2016-06-12T11:21:34Z")

</div>

> 1. Does it is normal that I see only Pipeline main started after started the logstash?

Yes.

> 1. How I can add the logstash to autorun services?

Which Linux distribution are you on?

---

<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:** [July 6, 2017, 4:53am UTC](https://discuss.elastic.co/t/add-logstash-to-autorun-services/52296/3 "2017-07-06T04:53:29Z")

</div>


