Template installation error

When i start running my conf file, I am getting an error as shown below. How can I correct this error?

my conf file:
input {
tcp {
port => 514
type => syslog
}
udp {
port => 514
type => syslog
}
}

output {
elasticsearch {
hosts => ["120.96.22.29:9200"]
index=> "infrasyslog-%{+YYYY-MM-dd}"
}
stdout { codec => rubydebug }
}

Please don't post images of text as they are hardly readable and not searchable.

Instead paste the text and format it with </> icon. Check the preview window.