Hello there !
I'm trying to configure an ELK to have a better overview of my CSV files.
But when I launch my conf file, I get some issues I can't solve despite my searches and my tries for solving.
My conf file :
input {
file {
path => "C:/...*.csv"
start_position => beginning
sincedb_path => "/dev/null"
}
}
filter {
csv {
columns => ["IP Address", "DNS Name", "Scan Period"]
separator => ";"
}
}
output {
stdout { codec => rubydebug }
elasticsearch {
host => "localhost:9200"
index => "csv_index"
}
}
The result next a logstash -f "*.csv" command line :
[2017-06-12T14:52:17,639][ERROR][logstash.outputs.elasticsearch] Unknown setting
'host' for elasticsearch
[2017-06-12T14:52:17,655][ERROR][logstash.agent ] Cannot create pipeli
ne {:reason=>"Something is wrong with your configuration."}
[2017-06-12T14:52:17,967][INFO ][logstash.outputs.elasticsearch] Elasticsearch p
ool URLs updated {:changes=>{:removed=>[], :added=>[http://logstash_system:xxxxx
x@localhost:9200/_xpack/monitoring/?system_id=logstash&system_api_version=2&inte
rval=1s]}}
[2017-06-12T14:52:17,967][INFO ][logstash.outputs.elasticsearch] Running health
check to see if an Elasticsearch connection is working {:healthcheck_url=>http:/
/logstash_system:xxxxxx@localhost:9200/, :path=>"/"}
[2017-06-12T14:52:18,232][WARN ][logstash.outputs.elasticsearch] Restored connec
tion to ES instance {:url=>#<URI::HTTP:0x6cfddc20 URL:http://logstash_system:xxx
xxx@localhost:9200/>}
[2017-06-12T14:52:18,232][INFO ][logstash.outputs.elasticsearch] New Elasticsear
ch output {:class=>"LogStash::Outputs::ElasticSearch", :hosts=>[#<URI::HTTP:0x77
6b50d8 URL:http://localhost:9200>]}
[2017-06-12T14:52:18,248][INFO ][logstash.outputs.elasticsearch] Elasticsearch p
ool URLs updated {:changes=>{:removed=>[], :added=>[http://logstash_system:xxxxx
x@localhost:9200/_xpack/monitoring/?system_id=logstash&system_api_version=2&inte
rval=1s]}}
[2017-06-12T14:52:18,248][INFO ][logstash.outputs.elasticsearch] Running health
check to see if an Elasticsearch connection is working {:healthcheck_url=>http:/
/logstash_system:xxxxxx@localhost:9200/, :path=>"/"}
[2017-06-12T14:52:18,263][WARN ][logstash.outputs.elasticsearch] Restored connec
tion to ES instance {:url=>#<URI::HTTP:0x3ff94539 URL:http://logstash_system:xxx
xxx@localhost:9200/>}
[2017-06-12T14:52:18,263][INFO ][logstash.outputs.elasticsearch] New Elasticsear
ch output {:class=>"LogStash::Outputs::ElasticSearch", :hosts=>[#<URI::HTTP:0x72
e9016 URL:http://localhost:9200>]}
[2017-06-12T14:52:18,263][INFO ][logstash.pipeline ] Starting pipeline {"
id"=>".monitoring-logstash", "pipeline.workers"=>1, "pipeline.batch.size"=>2, "p
ipeline.batch.delay"=>5, "pipeline.max_inflight"=>2}
[2017-06-12T14:52:18,279][INFO ][logstash.pipeline ] Pipeline .monitoring
-logstash started
[2017-06-12T14:52:18,513][INFO ][logstash.agent ] Successfully started
Logstash API endpoint {:port=>9600}
[2017-06-12T14:52:28,285][ERROR][logstash.inputs.metrics ] Failed to create mon
itoring event {:message=>"For path: events", :error=>"LogStash::Instrument::Metr
icStore::MetricNotFound"}
I tried everything, nothing effective. So a little help could be great.
Thanks in advance, and have a nice day !