I am trying to create index of elasticsearch using logstash.conf file but I am not able to create index. There is not any error in logs of elasticsearch and logstash. After starting the logstash whenever I do url/_cat/indices it is not showing index in the list but whenever I am commenting index tag from conf file it is creating the default index with name logstash-%(date)
Pls help me I am new to this.
Following is the logstash.conf file
Hey what I found it is creating index of one log file file but not for another
second log file does n't have any timestamp does it matter while creating index
and index doesn't need a timestamp or date field, no. But, if the second log file isn't in syslog format, you input codec might be causing the problem. Do you see any errors in Logstash logs?
no there is not any error in logstash and both log files are completely different , I did not created any format for any log file..I just used another log file for testing purpose. But it creating index for one file but not creating for the file I need.
I highly recommend that you give a close reading to the file input documentation. For example, are you in read mode or tail mode? Are you aware of the implications of sincedb? If using the default tail mode, is the second log file receiving new events or are you expecting Logstash to process it from the beginning, which means you need to set start_position?
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.