Currently, if creating indexes in a sharded cluster the mongos is not recording the createIndex command and neither the dropIndex(es). The commands only get logged if it takes > 100ms.
On the other hand, those commands are always logged on the mongod log making it hard to trace back the origin of the commands in sharded environment.