Data Upload to elasticsearch

Hi ,

I am trying to import .json file to elasticsearch through logstash but not able to see the data.Also it getting processed through logstash once only ,it is not performing activities.
PFA snapshot.

Please find below the logstash.conf details:-
input {
file {
path => "D:\ELASTICSEARCH\accounts.json"
start_position => "beginning"
output {
elasticsearch {
cluster => "localhost:9200"
index => "cld-logstash=%{+YYYY.MM.DD}"
protocol =>http

Please suggest.


Logstash probably thinks it already has processed accounts.json. If you want it processed again you need to delete the sincedb file Logstash uses to keep track of the current position in the input file. See the documentation and search the forum archives for details.

1 Like