def writeback_index_side_effect(index, doc_type):
    if (doc_type == 'silence'):
        return (index + '_silence')
    elif (doc_type == 'past_elastalert'):
        return (index + '_past')
    elif (doc_type == 'elastalert_status'):
        return (index + '_status')
    elif (doc_type == 'elastalert_error'):
        return (index + '_error')
    return index
def writeback_index_side_effect(index, doc_type):
    if (doc_type == 'silence'):
        return (index + '_silence')
    elif (doc_type == 'past_elastalert'):
        return (index + '_past')
    elif (doc_type == 'elastalert_status'):
        return (index + '_status')
    elif (doc_type == 'elastalert_error'):
        return (index + '_error')
    return index