This is the naming convention of my log files which looks like this:
adminPortal-2021-10-10.0.log
adminPortal-2021-10-27.0.log
I need to publish them to different indices that match the log file date, but Elasticsearch publishes logs from all log files into one index.
output {
elasticsearch {
hosts => ["localhost:9200"]
index => "admin-%{+YYYY-MM-dd}"
}
}