def parse_elasticsearch(config):
    """Parse configuration values and get values of the elasticsearch section"""
    cfg = {}
    section = 'elasticsearch'
    cfgoption = 'index'
    if config.has_section(section):
        if config.has_option(section, cfgoption):
            cfgvalue = config.get(section, cfgoption)
        cfg[cfgoption] = cfgvalue
    return cfg
