I'm using Ubuntu 14.04 LTS, Kibana, Logstash and Elasticsearch. I tried the following code to import my csv file to LogStash but it doesnt detect.
input
{
file
{
path => "/home/kibana/Downloads/FL_insurance_sample.csv"
type => "FL_insurance_sample.csv"
start_position => "beginning"
sincedb_path => "/dev/null"
}
}
filter
{
csv
{
columns => ["policyID","statecode","country","eq_site_limit","hu_site_limit",
"fl_sitelimit","fr_site_limit","tiv_2011","tiv_2012","eq_site_deductible",
"hu_site_deductible","fl_site_deductible","fr_site_deductible","point_latitude",
"point_longtitude","line","construction","point_granularity"]
separator => ","
}
}
output
{
elasticsearch {
action => "index"
host => "localhost"
index => "promosms-%{+dd.MM.YYYY}"
workers => 1
}
stdout
{
codec => rubydebug
}
}
I even did
sudo service logstash restart
When I went into index mapping in Kibana GUI interface, i chose Logstash-* and couldn't find the data that I wanted. P.S. my config file is stored in /etc/logstash/conf.d/simple.conf
bin/logstash --debug -f your_config.conf
and edit your question with the output you get? – Valsudo service logstash restart
because I can't seem to run -f command. Can I know the exact command for running it? I triedcd /etc/logstash/
and ran/etc/logstash -f logstash.conf
– imbadatcoding/etc/logstash/conf.d/logstash.conf
when running as a service and it will be picked up. – Val-f command
line to run the config file though :/ – imbadatcoding/etc/logstash/conf.d/logstash.conf
config file is automatically picked up. – Val