version: logstash-2.3.4
nginx-1.8.1
here is my logstash.conf :
input {
** file{**
** path => ["/home/houfan/nginx/errorlog/ac_api_error.log"]**
** start_position => "beginning"**
** }**
}
filter {
** grok {**
** match => { "message" => ["(?\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2}) [%{DATA:nginx_severity}] %{NOTSPACE} %{NOTSPACE} (?<nginx_message>(.|\r|\n)*)(?:, client: (?<nginx_client_ip>%{IP}|%{HOSTNAME}))(?:, server: %{IPORHOST:nginx_server})(?:, request: %{QS:nginx_request})?(?:, upstream: %{QS:upstream})?(?:, host: %{QS:nginx_host})?(?:, referrer: "%{URI:nginx_referrer})?"]}**
** }**
}
output {
** stdout {**
** codec => rubydebug**
** }**
}
and after I ran the command ./bin/logstash -f logstash.conf ,I only got this:
root@logstashServer:/elk/logstash# ./bin/logstash -f logstash.conf
Settings: Default pipeline workers: 4
Pipeline main started
no error , no red light .........where am I go wrong ?
really appreciate your help .