Hello Everyone,
I am new in ELK, i was trying to load simple CSV file on logstash but got error although, i change sincedb_path option and also local host but same result received..
so please guide me
my input file
input {
file {
path => "D:/data/firends.csv"
start_position => "beginning"
sincedb_path => "null"
}
}
filter {
csv {
separator => ","
columns => ['name', 'city', 'country', 'mobile', 'location']
}
mutate {convert => ["mobile", "integer"]}
}
output {
elasticsearch {
hosts => ["localhost:9200"]
index => "firends"
document_type => "data"
}
stdout { codec => dots }
}`
my output
C:\Users\HP\Downloads\elastic course\logstash-6.3.2\bin>logstash -f D:\data\myda
ta.conf
'findstr' is not recognized as an internal or external command,
operable program or batch file.
Sending Logstash's logs to C:/Users/HP/Downloads/elastic course/logstash-6.3.2/l
ogs which is now configured via log4j2.properties
[2019-06-17T19:32:01,267][WARN ][logstash.config.source.multilocal] Ignoring the
'pipelines.yml' file because modules or command line options are specified
[2019-06-17T19:32:01,525][INFO ][logstash.runner ] Starting Logstash {"
logstash.version"=>"6.3.2"}
[2019-06-17T19:32:02,122][ERROR][logstash.agent ] Failed to execute ac
tion {:action=>LogStash::PipelineAction::Create/pipeline_id:main, :exception=>"L
ogStash::ConfigurationError", :message=>"Expected one of #, input, filter, outpu
t at line 33, column 2 (byte 397) after ", :backtrace=>["C:/Users/HP/Downloads/e
lastic course/logstash-6.3.2/logstash-core/lib/logstash/compiler.rb:42:in compi le_imperative'", "C:/Users/HP/Downloads/elastic course/logstash-6.3.2/logstash-c ore/lib/logstash/compiler.rb:50:in
compile_graph'", "C:/Users/HP/Downloads/elas
tic course/logstash-6.3.2/logstash-core/lib/logstash/compiler.rb:12:in block in compile_sources'", "org/jruby/RubyArray.java:2486:in
map'", "C:/Users/HP/Downl
oads/elastic course/logstash-6.3.2/logstash-core/lib/logstash/compiler.rb:11:in
compile_sources'", "C:/Users/HP/Downloads/elastic course/logstash-6.3.2/logstas h-core/lib/logstash/pipeline.rb:49:in
initialize'", "C:/Users/HP/Downloads/elas
tic course/logstash-6.3.2/logstash-core/lib/logstash/pipeline.rb:167:in initial ize'", "C:/Users/HP/Downloads/elastic course/logstash-6.3.2/logstash-core/lib/lo gstash/pipeline_action/create.rb:40:in
execute'", "C:/Users/HP/Downloads/elasti
c course/logstash-6.3.2/logstash-core/lib/logstash/agent.rb:305:in `block in con
verge_state'"]}
[2019-06-17T19:32:02,402][INFO ][logstash.agent ] Successfully started
Logstash API endpoint {:port=>9600}
C:\Users\HP\Downloads\elastic course\logstash-6.3.2\bin>
regards,
Irfan