Gets the filter for the features in the object

        :param features: The features of the syslog file

def _get_filter(self, features):
        """
        Gets the filter for the features in the object

        :param features: The features of the syslog file
        """

        # This chops the features up into smaller lists so the api can handle them
        for ip_batch in (features['ips'][pos:pos + self.ip_query_batch_size]
                         for pos in six.moves.range(0, len(features['ips']), self.ip_query_batch_size)):
            # Query for each chunk and add it to the filter list
            query = {'ips': ip_batch, 'ports': features['ports']}
            self.filter['ips'] += self._send_features(query)['ips']