Welcome!
Please read this about how to format.
You need to use the update settings API and not the create index if your index already exists I guess.
PUT /cedar-00001/_settings
{
"aliases" : {
"cedar_log" : {
"is_write_index": true
}
}
}
But I don't know if this is what you really want to do...