Creating Custom elasticsearch templates

Hi all,
i am trying to create custom elasticsearch template.
after i create a template and update it in .conf am not getting any output.
My template is:

my conf file is:

is this the correct way to do it? or am doing anything wrong? Please help me with my errors.

Your index is named data2 but your template matches data-*.

thanks for ur reply magnus.
even though i changed it..i am not getting any output
i am getting this in my cmd

even though i changed it..i am not getting any output

Output from what?

i am getting this in my cmd

If you delete your existing index and let Logstash create a new one, is your index template applied as expected?

Hi
i am creating new new index for logstash.

the output I mentioned is the output I get when I run my config file in command prompt.

What's the name of the index you're creating? Does it have the correct mappings?