(self, events, form, sketch, index_name)
return self._upload_and_index(
            events=events,
            file_extension=file_extension,
            timeline_name=timeline_name,
            index_name=index_name,
            sketch=sketch,
            form=form,
            data_label=data_label,
            enable_stream=form.get('enable_stream', False))
Upload a file like object.

        Args:
            events: string with all the events.
            form: a dict with the configuration for the upload.
            sketch: Instance of timesketch.models.sketch.Sketch
            index_name: the OpenSearch index name for the timeline.

        Returns:
            A timeline if created otherwise a search index in JSON (instance
            of flask.wrappers.Response)
Upload a file like object.
Upload a file like object .
def _upload_events(self, events, form, sketch, index_name):
        """Upload a file like object.

        Args:
            events: string with all the events.
            form: a dict with the configuration for the upload.
            sketch: Instance of timesketch.models.sketch.Sketch
            index_name: the OpenSearch index name for the timeline.

        Returns:
            A timeline if created otherwise a search index in JSON (instance
            of flask.wrappers.Response)
        """
        timeline_name = form.get('name', 'unknown_events')
        file_extension = 'jsonl'
        data_label = form.get('data_label', '')

        return self._upload_and_index(
            events=events,
            file_extension=file_extension,
            timeline_name=timeline_name,
            index_name=index_name,
            sketch=sketch,
            form=form,
            data_label=data_label,
            enable_stream=form.get('enable_stream', False))
def _upload_events ( self , events , form , sketch , index_name ) : timeline_name = form . get ( 'name' , 'unknown_events' ) file_extension = 'jsonl' data_label = form . get ( 'data_label' , '' ) return self . _upload_and_index ( events = events , file_extension = file_extension , timeline_name = timeline_name , index_name = index_name , sketch = sketch , form = form , data_label = data_label , enable_stream = form . get ( 'enable_stream' , False ) )