# Stop logstash in CentOs

**URL:** <https://discuss.elastic.co/t/stop-logstash-in-centos/89342>\
**Category:** Logstash\
**Created:** [June 14, 2017, 9:18am UTC](https://discuss.elastic.co/t/stop-logstash-in-centos/89342 "2017-06-14T09:18:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![richagautam](https://avatars.discourse-cdn.com/v4/letter/r/9e8a1a/32.png) [@richagautam](https://discuss.elastic.co/u/richagautam)\
**Post date:** [June 14, 2017, 9:18am UTC](https://discuss.elastic.co/t/stop-logstash-in-centos/89342/1 "2017-06-14T09:18:41Z")

</div>

Hi,

I am new to Logstash and centos.  
I have installed logstash in centOS7, now everytime i run a config file it gives the messages like  
"sending ........."  
then parsed data on cosole...

then as logstash behaves it keeps on running in the console so i don't get command prompt to check the log files or generated output file.

I want to know how should i come out of logstash to get the command prompt.  
because if i Ctrl X to stop then proccess keeps on running and i have to kill the process and doing so will give exception also.

Please guide how to use logstash in CentOS.

input {  
file {  
path =\> "D:/logs/access\_log21.log"  
start\_position =\> "beginning"  
}  
}

filter {  
if [type] == "syslog" {  
grok {  
match =\> { "message" =\> "%{COMBINEDAPACHELOG}" }  
}  
date {  
match =\> ["timestamp" , "dd/MMM/yyyy:HH:mm:ss Z"]  
}  
}  
}

output {  
file {  
path =\> "D:/output/logstashoutcsv3.csv"  
codec =\> line { format =\> "%{timestamp},%{clientip}"}

}  
stdout { codec =\> json }  
}

This is my sample conf file.

Please advice.

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:** [July 12, 2017, 9:18am UTC](https://discuss.elastic.co/t/stop-logstash-in-centos/89342/2 "2017-07-12T09:18:44Z")

</div>

Closed on July 12, 2017, 9:18am UTC

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