I am creating index in mongodb having 10 million records but following error
db.logcollection.ensureIndex({\"Module\":1}) { \"createdCollectionAutom
MongoDB will not create an index on a collection if the index entry for an existing document exceeds the index key limit (1024 bytes). You can however create a hashed index or text index instead:
db.logcollection.createIndex({"Module":"hashed"})
or
db.logcollection.createIndex({"Module":"text"})