Stop logstash in CentOs

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

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