Successfullystarted logstash but it cant read my file even configuration is done without error msg

My config file

input {
file {
path =>"C:\Users\pgt0005\Desktop\data\100-contacts.csv"
start_position => "beginning"
}
}

filter {
csv{
separator=>","
columns=>["first_name","last_name","company_name","address","city","county","state","zip","phone1","phone","email"]

}

}

output {
elasticsearch {
hosts => ["localhost:9200"]
index => "contactdetailchart"
}
stdout{codec => rubydebug}

}

and My cmd prompt shown msg in logstash configuration

Thread.exclusive is deprecated, use Thread::Mutex
Sending Logstash logs to C:/elk/logstash-7.3.2/logs which is now configured via log4j2.properties
[2020-01-12T21:02:01,899][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified
[2020-01-12T21:02:01,992][INFO ][logstash.runner ] Starting Logstash {"logstash.version"=>"7.3.2"}
[2020-01-12T21:02:05,953][INFO ][org.reflections.Reflections] Reflections took 48 ms to scan 1 urls, producing 19 keys and 39 values
[2020-01-12T21:02:10,024][INFO ][logstash.outputs.elasticsearch] Elasticsearch pool URLs updated {:changes=>{:removed=>, :added=>[http://localhost:9200/]}}
[2020-01-12T21:02:10,884][WARN ][logstash.outputs.elasticsearch] Restored connection to ES instance {:url=>"http://localhost:9200/"}
[2020-01-12T21:02:11,088][INFO ][logstash.outputs.elasticsearch] ES Output version determined {:es_version=>7}
[2020-01-12T21:02:11,109][WARN ][logstash.outputs.elasticsearch] Detected a 6.x and above cluster: the type event field won't be used to determine the document _type {:es_version=>7}
[2020-01-12T21:02:11,222][INFO ][logstash.outputs.elasticsearch] New Elasticsearch output {:class=>"LogStash::Outputs::ElasticSearch", :hosts=>["//localhost:9200"]}
[2020-01-12T21:02:11,521][INFO ][logstash.outputs.elasticsearch] Using default mapping template
[2020-01-12T21:02:11,748][WARN ][org.logstash.instrument.metrics.gauge.LazyDelegatingGauge] A gauge metric of an unknown type (org.jruby.specialized.RubyArrayOneObject) has been create for key: cluster_uuids. This may result in invalid serialization. It is recommended to log an issue to the responsible developer/development team.
[2020-01-12T21:02:11,769][INFO ][logstash.javapipeline ] Starting pipeline {:pipeline_id=>"main", "pipeline.workers"=>4, "pipeline.batch.size"=>125, "pipeline.batch.delay"=>50, "pipeline.max_inflight"=>500, :thread=>"#<Thread:0x281403fc run>"}
[2020-01-12T21:02:11,921][INFO ][logstash.outputs.elasticsearch] Attempting to install template {:manage_template=>{"index_patterns"=>"logstash-", "version"=>60001, "settings"=>{"index.refresh_interval"=>"5s", "number_of_shards"=>1}, "mappings"=>{"dynamic_templates"=>[{"message_field"=>{"path_match"=>"message", "match_mapping_type"=>"string", "mapping"=>{"type"=>"text", "norms"=>false}}}, {"string_fields"=>{"match"=>"", "match_mapping_type"=>"string", "mapping"=>{"type"=>"text", "norms"=>false, "fields"=>{"keyword"=>{"type"=>"keyword", "ignore_above"=>256}}}}}], "properties"=>{"@timestamp"=>{"type"=>"date"}, "@version"=>{"type"=>"keyword"}, "geoip"=>{"dynamic"=>true, "properties"=>{"ip"=>{"type"=>"ip"}, "location"=>{"type"=>"geo_point"}, "latitude"=>{"type"=>"half_float"}, "longitude"=>{"type"=>"half_float"}}}}}}}
[2020-01-12T21:02:13,224][INFO ][logstash.inputs.file ] No sincedb_path set, generating one based on the "path" setting {:sincedb_path=>"C:/elk/logstash-7.3.2/data/plugins/inputs/file/.sincedb_1bf826181e8ad8335fde285764e82cd9", :path=>["C:\Users\pgt0005\Desktop\data\100-contacts.csv"]}
[2020-01-12T21:02:13,330][INFO ][logstash.javapipeline ] Pipeline started {"pipeline.id"=>"main"}
[2020-01-12T21:02:13,567][INFO ][filewatch.observingtail ] START, creating Discoverer, Watch with file and sincedb collections
[2020-01-12T21:02:13,592][INFO ][logstash.agent ] Pipelines running {:count=>1, :running_pipelines=>[:main], :non_running_pipelines=>}
[2020-01-12T21:02:14,795][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}

Help me
Saravanan.R

Do not use backslash in the path option of a file input -- use forward slash.

Changed the backslash to forwardslash successfully eventhough its not read it

input {
file {
path =>"C:/Users/pgt0005/Desktop/data/100-contacts.csv"
start_position => "beginning"
}
}

filter {
csv{
separator=>","
columns=>["first_name","last_name","company_name","address","city","county","state","zip","phone1","phone","email"]

}

}

output {
elasticsearch {
hosts => ["localhost:9200"]
index => "contactdetailchart"
}
stdout{codec => rubydebug}

}

Any other solution for this

Thanks a lot
its working also im add stdin {} in input plugin

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.