Our goal is send filebeat output to logstash and logstash output to elasticsearch.
Please Note - Output of - "curl 'localhost:9200/_cat/indices?v'"
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
yellow open filebeat-6.2.2-2018.02.23 _kjNzUMkRia5nOmVKOW-Tw 3 1 3210 0 558.4kb 558.4kb
You've single-quoted the URL in your command so the $DATE environment variable reference won't be expanded. If you instead double-quote the string the variable will be expanded.
I'm of course assuming that you're setting the DATE varaible to a reasonable value.
So you're not setting the DATE variable in your shell? Then why do you expect a shell command that includes $DATE to work? I don't understand what you're trying to do.
The most recent command output you posted indicates that the variable isn't defined. If you prepend the command with echo you'll see exactly what you would execute without actually executing it.
Happy to let you know that the issue is resolved. As we were using Filebeat and output is set to Logstash, the index is of the pattern "Filebeat-$DATE".
The index is now also accessible at Kibana
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.