import json


def read_file(filename):
    """Reads a file containing one JSON object per line into a list of dicts"""
    with open(filename) as f:
        lines = [json.loads(line) for line in f.readlines()]
    for line in lines:
        # host is generated by logstash, and will change run to run
        del line["host"]
    return lines