Importing json file using logstash stuck with Successfully started Logstash API endpoint {:port=>9600}

{"request_id":1,"requestDetail_id":0,"enrichedContent":"enrich cont example","statusCode":"P","reasonDesc":"This is a test","createdBy":"Sarah","createdDate":"Sep 24, 2010"}

Json data

Conf file is

input {
file{
path => "c:/pearl/data/export1.json"
start_position => "beginning"

codec => json

}
}

filter {
json {
source => "message"
}
}

output {

stdout {codec => rubydebug}
elasticsearch{
hosts => "http://localhost:9200"
index => "testindex"
}
}

shows below msg

Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Sending Logstash logs to C:/Pearl/logstash-7.9.2/logs which is now configured via log4j2.properties
[2020-10-16T17:13:11,055][INFO ][logstash.runner ] Starting Logstash {"logstash.version"=>"7.9.2", "jruby.version"=>"jruby 9.2.13.0 (2.5.7) 2020-08-03 9a89c94bcc Java HotSpot(TM) 64-Bit Server VM 13.0.2+8 on 13.0.2+8 +indy +jit [mswin32-x86_64]"}
[2020-10-16T17:13:11,631][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified
[2020-10-16T17:13:15,482][INFO ][org.reflections.Reflections] Reflections took 127 ms to scan 1 urls, producing 22 keys and 45 values
[2020-10-16T17:13:19,064][INFO ][logstash.outputs.elasticsearch][main] Elasticsearch pool URLs updated {:changes=>{:removed=>, :added=>[http://localhost:9200/]}}
[2020-10-16T17:13:19,482][WARN ][logstash.outputs.elasticsearch][main] Restored connection to ES instance {:url=>"http://localhost:9200/"}
[2020-10-16T17:13:19,577][INFO ][logstash.outputs.elasticsearch][main] ES Output version determined {:es_version=>7}
[2020-10-16T17:13:19,590][WARN ][logstash.outputs.elasticsearch][main] Detected a 6.x and above cluster: the type event field won't be used to determine the document _type {:es_version=>7}
[2020-10-16T17:13:19,729][INFO ][logstash.outputs.elasticsearch][main] New Elasticsearch output {:class=>"LogStash::Outputs::Elasticsearch", :hosts=>["http://localhost:9200"]}
[2020-10-16T17:13:19,881][INFO ][logstash.outputs.elasticsearch][main] Using a default mapping template {:es_version=>7, :ecs_compatibility=>:disabled}
[2020-10-16T17:13:19,992][INFO ][logstash.javapipeline ][main] Starting pipeline {:pipeline_id=>"main", "pipeline.workers"=>4, "pipeline.batch.size"=>125, "pipeline.batch.delay"=>50, "pipeline.max_inflight"=>500, "pipeline.sources"=>["C:/Pearl/Data/testj.conf"], :thread=>"#<Thread:0x2d358b73 run>"}
[2020-10-16T17:13:20,147][INFO ][logstash.outputs.elasticsearch][main] 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-10-16T17:13:22,097][INFO ][logstash.javapipeline ][main] Pipeline Java execution initialization time {"seconds"=>2.07}
[2020-10-16T17:13:23,491][INFO ][logstash.inputs.file ][main] No sincedb_path set, generating one based on the "path" setting {:sincedb_path=>"C:/Pearl/logstash-7.9.2/data/plugins/inputs/file/.sincedb_1f3b2352fcd98079f25a20390b65508b", :path=>["c:/pearl/data/export1.json"]}
[2020-10-16T17:13:23,554][INFO ][logstash.javapipeline ][main] Pipeline started {"pipeline.id"=>"main"}
[2020-10-16T17:13:23,697][INFO ][filewatch.observingtail ][main][62c99e6fda7eccc30f2b28649bb56131661801c2c0b900fd4465b98385096a43] START, creating Discoverer, Watch with file and sincedb collections
[2020-10-16T17:13:23,732][INFO ][logstash.agent ] Pipelines running {:count=>1, :running_pipelines=>[:main], :non_running_pipelines=>}
[2020-10-16T17:13:25,258][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}

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