How to check if logstash is sending the logs to Elasticsearch

Hi,
could you please let us know How to check if logstash is sending the logs to Elasticsearch. logstash,elasticsearch,kibana has been started without any issues.however i'm unable to view the logs/indexes in Kibana.

Please find below my logstash config file

input {
file {
path => "<>"
type => "fe"
start_position => "beginning"

}
}

output {
elasticsearch {
hosts => ["http://localhost:9200"]
index => "relog"

}
stdout { codec => rubydebug }
}

Do any of the logs scroll by on the console (due to your standard out "stdout" line)?

If no, adjust the path to add a wildcard and file extension ("*.csv" below) to the input section. This will watch your directory for any CSV files that are place there and ingest them.

If yes, try adding your username and password to the output section. I tweaked your host format too.

input {
    file {
        path => "/fake-path/.*csv"
        type => "fe"
        start_position => "beginning"
    }
}

output {
    stdout { codec => rubydebug }
    elasticsearch {
        hosts => "localhost:9200"
        user => "username"
        password => "password"
        index => "relog"
    }
}

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