Change index file name from logstash command

Is there any way to give custom name to index file in logstash config file every-time I run log-stash command?

output {
elasticsearch {
hosts => ["localhost:9200"]
index => "global7679-%{+YYYY.MM.dd}" <----- Need to change this name
}
}

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.