elasticsearch {
hosts => "13.10.256.10:9200"
index => "twitter"
}
}
I could see the logs in command prompt but when I checked elasticsearch with the API 'http://13.10.256.10:9200/_cat/indices?v', it's showing docs.count as 0. What wrong am I doing? Do I need to create any other fields other than index? Please help me on this issue.
The file input plugin by default tails the file, so if it was created before Logstash was started you will need to set start_position to beginning and also delete the sincedb file, as this will have recorded the current file as processed.
Hi Christian, I don't have problem with start_position, because I am able to see all my results in the command prompt output. The only problem is I can't see when I check it in the elasticsearch index.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.