I'm somewhat new to the ELK stack and I'm currently putting together my dev environment so I can get familiar with the different products. I already have gone through the process of setting up ElasticSearch, Logstash, and Kibana. I'm at the point where I want to define a template for logstash to read in Twitter documents.
There's a portion in the output block that you can set your template and template name. I'm wondering where exactly am I suppose to be putting my template.json
file? From my understanding I always created a template via ElasticSearch, but this kinda throws me off as to what is really being asked here. Could someone explain this to me?
output {
stdout { codec => dots }
elasticsearch {
hosts => "localhost:9200"
index => "twitter"
document_type => "tweet"
template => "template.json"
template_name => "twitter"
}
}