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

**URL:** <https://discuss.elastic.co/t/importing-json-file-using-logstash-stuck-with-successfully-started-logstash-api-endpoint-port-9600/252342>\
**Category:** Logstash\
**Created:** [October 16, 2020, 11:50am UTC](https://discuss.elastic.co/t/importing-json-file-using-logstash-stuck-with-successfully-started-logstash-api-endpoint-port-9600/252342 "2020-10-16T11:50:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Manuang](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@Manuang](https://discuss.elastic.co/u/Manuang)\
**Post date:** [October 16, 2020, 11:50am UTC](https://discuss.elastic.co/t/importing-json-file-using-logstash-stuck-with-successfully-started-logstash-api-endpoint-port-9600/252342/1 "2020-10-16T11:50:21Z")

</div>

> {"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](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/](http://localhost:9200/)]}}  
[2020-10-16T17:13:19,482][WARN][logstash.outputs.elasticsearch][main] Restored connection to ES instance {:url=\>"[http://localhost:9200/](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](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}

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 13, 2020, 11:50am UTC](https://discuss.elastic.co/t/importing-json-file-using-logstash-stuck-with-successfully-started-logstash-api-endpoint-port-9600/252342/2 "2020-11-13T11:50:24Z")

</div>

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