I'm configuring a csv file via logstash and need the ouptut loaded in elasticsearch. Please see below config file details also the commands executed so far.. The terminal gets stuck after "Logsatsh startup completed"..
root@karthikvalluri:/opt/logstash# bin/logstash --configtest -f Appletest.conf
Configuration OK
root@karthikvalluri:/opt/logstash# opt/bin/logstash -f Appletest.conf-bash: opt/bin/logstash: No such file or directory
root@karthikvalluri:/opt/logstash# bin/logstash -f Appletest.conf
Settings: Default pipeline workers: 4
Logstash startup completed
Config File:-
input {
file {
path => "/opt/logstash/yahoostock.csv"
type => "core2"
start_position => "beginning"
ignore_older => 0
}
}
filter {
csv {
columns => ["Date","Open","High","Low","Close","Volume","Adj Close"]
separator => ","
}
mutate{
convert => { "High" => "float"}
convert => { "Open" => "float"}
convert => { "Low" => "float"}
convert => { "Close" => "float"}
convert => { "Volume" => "float"}
}
}
output {
elasticsearch {
action => "index"
hosts => "localhost"
index => "Yahoo"
workers => 4
}
}
I tried searching for older posts but without any success.