find out if index exist, create index, create mapping, index log-line