def METHOD_NAME(self):
    event = self.receive_message()
    if self.format_filename:
        ev = defaultdict(None)
        ev.update(event)
        if 'time.observation' in ev:
            try:
                ev['time.observation'] = datetime.datetime.strptime(ev['time.observation'],
                                                                    '%Y-%m-%dT%H:%M:%S+00:00')
            except ValueError:
                ev['time.observation'] = datetime.datetime.strptime(ev['time.observation'],
                                                                    '%Y-%m-%dT%H:%M:%S.%f+00:00')
        if 'time.source' in ev:
            try:
                ev['time.source'] = datetime.datetime.strptime(ev['time.source'],
                                                               '%Y-%m-%dT%H:%M:%S+00:00')
            except ValueError:
                ev['time.source'] = datetime.datetime.strptime(ev['time.source'],
                                                               '%Y-%m-%dT%H:%M:%S.%f+00:00')
        filename = self.file.format(event=ev)
        if not self.file or filename != self._file.name:
            self.open_file(filename)
    acknowledge_message = False
    for indicator_type in BRO_INDICATOR_MAP.keys():
        if event.get(indicator_type):
            event_data = ''
            event_data += event[indicator_type] + '\t'
            event_data += BRO_INDICATOR_MAP[indicator_type] + '\t'
            if "extra.tags" in event and "apt" in event["extra.tags"]:
                event_data += 'apt' + '\t'
            else:
                event_data += event['classification.type'] + '\t'
            event_data += str(int(event['feed.accuracy'])) + '\t'
            if 'extra.orgc' in event:
                event_data += event['extra.orgc']
            elif 'feed.provider' in event:
                event_data += event['feed.provider']
            event_data += '\n'
            try:
                self._file.write(event_data)
                self._file.flush()
            except FileNotFoundError:
                self.init()
            else:
                if not acknowledge_message:
                    self.acknowledge_message()
                    acknowledge_message = True
        else:
            if not acknowledge_message:
                self.acknowledge_message()
                acknowledge_message = True
                self.logger.debug(str(indicator_type) + "Event did not have Bro indicator types.")