code: def add_fields(
              self,
              log_record,
              record,
              message_dict):
          
          super(
              SplunkFormatter,
              self).add_fields(
                  log_record,
                  record,
                  message_dict)
          if not log_record.get('timestamp'):
              now = datetime.datetime.utcnow().strftime(
                  '%Y-%m-%dT%H:%M:%S.%fZ')
              log_record['timestamp'] = now
docs: add_fields
  
          :param log_record: log record
          :param record: log message
          :param message_dict: message dict