(self, base_event)
Yields an event that is chained or linked to the base event.

        Args:
            base_event: the base event of the chain, used to construct further
                queries (instance of Event).

        Yields:
            An event (instance of Event) object that is linked or chained to
            the base event, according to the plugin.
Yields an event that is chained or linked to the base event.
Yields an event that is chained or linked to the base event .
def get_chained_events(self, base_event):
        """Yields an event that is chained or linked to the base event.

        Args:
            base_event: the base event of the chain, used to construct further
                queries (instance of Event).

        Yields:
            An event (instance of Event) object that is linked or chained to
            the base event, according to the plugin.
        """
        target = base_event.source.get('executable', '')
        if not target:
            return
            yield  # pylint: disable=W0101

        search_query = 'url:"*{0:s}*"'.format(target)
        return_fields = ['url']

        events = self.analyzer_object.event_stream(
            search_query, return_fields=return_fields, scroll=False)
        for event in events:
            url = event.source.get('url', '')
            if target.lower() in url.lower():
                yield event

        lnk_query = 'parser:lnk'
        return_fields = ['link_target']

        events = self.analyzer_object.event_stream(
            lnk_query, return_fields=return_fields, scroll=False)
        for event in events:
            link_target = event.source.get('link_target', '')
            if target.lower() in link_target.lower():
                yield event
def get_chained_events ( self , base_event ) : target = base_event . source . get ( 'executable' , '' ) if not target : return yield # pylint: disable=W0101 search_query = 'url:"*{0:s}*"' . format ( target ) return_fields = [ 'url' ] events = self . analyzer_object . event_stream ( search_query , return_fields = return_fields , scroll = False ) for event in events : url = event . source . get ( 'url' , '' ) if target . lower ( ) in url . lower ( ) : yield event lnk_query = 'parser:lnk' return_fields = [ 'link_target' ] events = self . analyzer_object . event_stream ( lnk_query , return_fields = return_fields , scroll = False ) for event in events : link_target = event . source . get ( 'link_target' , '' ) if target . lower ( ) in link_target . lower ( ) : yield event