set codec for logstash indexer