# Run logstah pipeline continously in Amazon EC2(Amazon Linux 2 AMI)

**URL:** <https://discuss.elastic.co/t/run-logstah-pipeline-continously-in-amazon-ec2-amazon-linux-2-ami/207823>\
**Category:** Logstash\
**Created:** [November 14, 2019, 6:58am UTC](https://discuss.elastic.co/t/run-logstah-pipeline-continously-in-amazon-ec2-amazon-linux-2-ami/207823 "2019-11-14T06:58:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sunil\_Murali](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sunil_murali/32/44739_2.png) [@Sunil\_Murali](https://discuss.elastic.co/u/Sunil_Murali)\
**Post date:** [November 14, 2019, 6:58am UTC](https://discuss.elastic.co/t/run-logstah-pipeline-continously-in-amazon-ec2-amazon-linux-2-ami/207823/1 "2019-11-14T06:58:10Z")

</div>

Hi All,

I have installed logstash in Amazon EC2(Amazon Linux 2 AMI).  
I am able to execute the filename.conf file by running the following command  
`sudo /usr/share/logstash/bin/logstash -f /etc/logstash/conf.d/filename.conf --path.settings /etc/logstash/`  
But as I exit the above command it stops processing filename.conf file.  
I would like to continuously keep running the logstash and pipeline process(filename.conf).  
I tried to simply starting the logstash using the command  
`sudo systemctl start logstash`  
The logstash is active and running but still does not start the pipeline process.  
Solution will be a great help.

---

<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:** [December 12, 2019, 6:58am UTC](https://discuss.elastic.co/t/run-logstah-pipeline-continously-in-amazon-ec2-amazon-linux-2-ami/207823/2 "2019-12-12T06:58:15Z")

</div>

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