#!/usr/bin/python

import pymongo

from pymongo import MongoClient

mongodb = MongoClient('mongodb://logwriter:sinqsics@mpc1965:27017/?authSource=admin')

dblist = ['amor', 'boa', 'dmc', 'eiger', 'focus', 'hrpt', 'morpheus', 
       'narziss', 'orion', 'poldi', 'rita2', 'sans', 'sans2', 'tasp'] 

for inst in dblist:
    db = mongodb[inst]
    db.log.create_index([('timestamp',pymongo.ASCENDING)])

