Reading template in logstash


#1

Hi All,

i am using logstash jdbc-input plugin to load data.I want all string columns should be analyzed.

I fallowed bellow steps::

  1. i have placed my own template at
    "C:\logstash-1.5.3\vendor\bundle\jruby\1.9\gems\logstash-output-elasticsearch-1.0.5-java\lib\logstash\outputs\elasticsearch " drive.

2.in the logstash config file i mention below output parameter

template => "C:\logstash-1.5.3\vendor\bundle\jruby\1.9\gems\logstash-output-elasticsearch-1.0.5-java\lib\logstash\outputs\elasticsearch\datalake_template.json"

3.when i am searching for list of available template by using curl command
curl -XGET localhost:9200/_template/

It's not looking for the template which i given.

But i am not able to find that which template it's reading.

Please let me know where is the default template location.

Please help me.

Regards,
Dinesh.


(Umang Jain) #2

Try this as it works for me:

elasticsearch {
template_overwrite => true
template_name => xyztemplate
template => "/opt/logstash/template.json"
protocol => "http"
codec => "plain"
manage_template => true
host => "localhost"
index => "xyz-%{+YYYY.MM}"
}

Thanks.


(system) #3