After I load the configuration file using the /bin/logstash -f logstash.conf command, how can I validate that the file has successsfully been entered in ElasticSearch?
If you intend to use Kibana later on (probably) you might as well install and configure it now and use it for verification. Otherwise Elasticsearch's search API is easy to use. You might also find the cat count API useful if you want to check how many documents are indexed and make sure that show correlate to the number of lines in the file.
I ran the command http://localhost:9200/_search/search_type=count. However, I conclude that only the individual entries were entered in ES, and not the log file that I tried to enter while running the conf file. Any feedback?
One thing to keep in mind is that all outputs emit messages in lockstep, so if the stdout output is writing data to stdout then that means that the elasticsearch output is also successfully sending data. (well, okay, I think at least with Logstash <1.5 ES could actually reject messages without Logstash taking much notice).
When I refer to individual entries, I mean entering data in ES using the PUT command. However, I am not able to input complete log files within ES.
I do get the following error whenever I start LS on windows 7 64 bit: "IO/console not supported; tty will not be manipulated". This error happens both when I don't define a Config file and when I specify a Config file. Could this be related?
When I refer to individual entries, I mean entering data in ES using the PUT command. However, I am not able to input complete log files within ES.
Okay. Turning up Logstash's logging with --verbose or even --debug will provide clues. Again, if it has problems posting to ES it will tell you in the log.
I do get the following error whenever I start LS on windows 7 64 bit: "IO/console not supported; tty will not be manipulated". This error happens both when I don't define a Config file and when I specify a Config file. Could this be related?
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.