vendredi 7 août 2015

How to index a log file in elastic search

I am using logstasher gem to collect logs in logstash_development.log.This file(logstash_deveopment.log) has all the logs in json format.I am trying to index al those logs in elasticsearch by using below command,

curl -XPOST' http://localhost:9200/jeeva' -d  @/home/shakthi/work/vs_web/spree_main/log/logstash_development.log

But I get the following result {"acknowledged":true}. My logs are not indexed properly.How to index a log file in elastic search?




Aucun commentaire:

Enregistrer un commentaire