Hi @Badger!
Thank you for your precious replies! I have read numerous topics on discuss.elastic.co
and I saw you gave very important pieces of advice. I have succeeded in sending data to Elasticsearch for the example above where I had an array with 3 objects. In order to do that, I have used the following configuration in Logstash:
input {
file {
path => ["/home/..../json-file-name"]
start_position => "beginning"
sincedb_path => ["/home/..../sincedb"]
codec => "json"
}
}
filter {
if [message] {
drop { }
}
}
output {
elasticsearch {
hosts => ["http://localhost:9200"]
index => "setlogs-%{+YYYY.MM.dd}"
}
stdout {
codec => rubydebug
}
}
It works for my example with 3 objects. But when try to do this for my JSON array which has 30 MB and almost 4300 objects, Logstash doesn't print anything. It is like it waits for some input. I let Logstash running for 50 min. but when I saw there is no output I closed it. Do you have any idea what happened?