makePickle

        Convert a log record into a JSON dictionary
        packaged into a socket-ready message for a Splunk
        TCP Port configured that is set up with a JSON sourcetype

        :param record: log record to format as a socket-ready message

def makePickle(
            self,
            record):
        """makePickle

        Convert a log record into a JSON dictionary
        packaged into a socket-ready message for a Splunk
        TCP Port configured that is set up with a JSON sourcetype

        :param record: log record to format as a socket-ready message
        """

        use_vals = self.custom
        if not use_vals:
            use_vals = {}
        for i in self.included_vals:
            if i not in use_vals:
                use_vals[i] = self.included_vals[i]

        # for now leave as None
        use_vals['asctime'] = None
        use_vals['systime'] = datetime.datetime.now().strftime(
            '%Y-%m-%d %H:%M:%S.%f')

        self.formatter.set_fields(
            new_fields=use_vals)
        self.debug_log('format={}'.format(
            record))
        log_json_str = self.formatter.format(record)
        self.debug_log('build={}'.format(
            log_json_str))
        splunk_msg = self.build_into_splunk_tcp_message(
            body=log_json_str) + b'\n'
        self.debug_log('send={}'.format(
            splunk_msg))
        return splunk_msg