def get_event(self, searchindex_id, event_id):
    'Get one event from the datastore.\n\n        Args:\n            searchindex_id: String of ElasticSearch index id\n            event_id: String of ElasticSearch event id\n\n        Returns:\n            Event document in JSON format\n        '
    METRICS['search_get_event'].inc()
    try:
        if self.version.startswith('6'):
            event = self.client.get(index=searchindex_id, id=event_id, doc_type='_all', _source_exclude=['timesketch_label'])
        else:
            event = self.client.get(index=searchindex_id, id=event_id, doc_type='_all', _source_excludes=['timesketch_label'])
        return event
    except NotFoundError:
        abort(HTTP_STATUS_CODE_NOT_FOUND)
Get one event from the datastore.

Args:
    searchindex_id: String of ElasticSearch index id
    event_id: String of ElasticSearch event id

Returns:
    Event document in JSON format
def get_event(self, searchindex_id, event_id):
    'Get one event from the datastore.\n\n        Args:\n            searchindex_id: String of ElasticSearch index id\n            event_id: String of ElasticSearch event id\n\n        Returns:\n            Event document in JSON format\n        '
    METRICS['search_get_event'].inc()
    try:
        if self.version.startswith('6'):
            event = self.client.get(index=searchindex_id, id=event_id, doc_type='_all', _source_exclude=['timesketch_label'])
        else:
            event = self.client.get(index=searchindex_id, id=event_id, doc_type='_all', _source_excludes=['timesketch_label'])
        return event
    except NotFoundError:
        abort(HTTP_STATUS_CODE_NOT_FOUND)