How can I send logs from file to Elasticsearch using Logstash between two separated servers?

I try to send logs from logs.csv file to elasticsearch using Logstash. In Elasticsearch I have index logs with type log. At the moment my logstash.conf looks in the way shown below. Logstash seems to be configured correctly because for instance sudo ./logstash -e 'input { stdin { } } output { stdout {} }' works properly. Any ideas why it's not working? It adds only name of the column to elasticsearch.

input {
  file {
    path => "/run/shm/elastic/logstash/file"
    start_position => "beginning"
    sincedb_path => "/dev/null"
filter {
  csv {
      columns => ["logs"]

output {
    elasticsearch {
        hosts => "hostaddress:9200"
        index => "logs"
        document_type => "log"
    stdout {}

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