Hi here is my logstash config file
input {
beats {
port => 5044
}
}
output {
elasticsearch {
hosts => "http://IP:9200"
index => "%{type}%{+YYYY.MM.dd}"
user => "elastic"
password => "pwd"
}
}
This is not creating the index. getting %{type} not compatible. if i remove {type} and put a string in its place it is creating the index. I tried putting %{[fields.type]} this is also giving me error
elasticsearch - Badly formatted index, after interpolation still contains placeholder: [%{[fields.type]}2023.05.23];
What is the correct syntax. I am using 8.7 version of elk stack