Reputation: 1851
I am very new to the ELK stack and I am having some difficulty wrapping my head around it.
I have a test configuration under /etc/logstash/conf.d/test.conf
that looks like this:
input {
stdin { }
}
output {
elasticsearch {
hosts => ["localhost:9200"]
index => "test"
}
stdout{ }
}
When I run sudo /opt/logstash/bin/logstash -f /etc/logstash/conf.d/test.conf
I see the output in stdout in the following form:
2016-08-04T10:09:46.406Z myserver.local hello world
, but I don't see it apper in Kibana.
I think I might have created the index wrong, as I am not 100% sure how to do it.
Upvotes: 0
Views: 541
Reputation: 809
Summarizing the comments with some pointers into an answer as it solved your problem.
Using index => "test"
is the correct way. You can also give a field value as index name using index => "%{fieldname}"
.
test
in elasticsearch
.elasticsearch
by using localhost:9200/_cat/indices/?v
in your browser. elasticsearch
is configured. Giving a different port number without configuring in elasticsearch
will not work. The default port number is 9200
. elasticsearch
then you should be able to see it in kibana
as well. Now you can go ahead and create the pattern
in kibana
with the index name test
.timepicker
and adjust it to see the results.Upvotes: 2
Reputation: 4655
I guess you dont see anything because of your time interval that is at the top right of your browser. May be your document is older than that interval - it is usually Last 15 minutes
. Change it to a bigger intevar like Today
etc
Upvotes: 1