I'm trying to use Logstash to load Oracle data to ES applying a specific template.
logstash version : 6.4.2
Here are the steps followed:
Step 1: retrieve data from Oracle and send them to ES without any template
Step 2 : retrieve existing mapping in one file with cURL
curl –XGET http://localhost:9200/index9/_mapping?pretty > template9.json
Step 3 : adapt the mapping to do my template (red circled = what I’ve changed)
Step 4: load the template with cURL
Curl –XPUT –H “Content-type: application/json” http://localhost:9200/_template/index9?pretty –d @template9.json
Acknowledged = true
Step 5: drop existing ES index with cURL
curl –XDELETE http://localhost:9200/index9?pretty
ack = true
Step 6: Modify my logstash-config.conf file
Step 7 : launch logstash to load ES data
Logstash –f logstash.config.conf
No error detected within Logstash logs.
Step 8: results
Template looks good:
However I don’t get my “new object”,
all data are on the same level:
And the mapping seems different:
Anyone know what I’m missing ?