Logstash can not write date into elasticsearch after activating elastic security

You need to string-quote those values:

elasticsearch {
    index => "log-%{+YYYY.MM.dd}"
    id => "elasticsearch_logging_receiver"
    user => "logstash_internal"
    password => "*******"
}
2 Likes