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 {}
}