code: def generate_common_reg_log_config(json_value):
          
          input_detail = copy.deepcopy(json_value['inputDetail'])
          output_detail = json_value['outputDetail']
          logSample = json_value.get('logSample', '')
          config_name = json_value['configName']
          logstore_name = output_detail['logstoreName']
          endpoint = output_detail.get('endpoint', '')
  
          log_path = input_detail['logPath']
          file_pattern = input_detail['filePattern']
          time_format = input_detail['timeFormat']
          log_begin_regex = input_detail.get('logBeginRegex', '')
          log_parse_regex = input_detail.get('regex', '')
          reg_keys = input_detail['key']
          topic_format = input_detail['topicFormat']
          filter_keys = input_detail['filterKey']
          filter_keys_reg = input_detail['filterRegex']
          log_type = input_detail.get('logType')
  
          for item in ('logPath', 'filePattern', 'timeFormat', 'logBeginRegex', 'regex', 'key',
                       'topicFormat', 'filterKey', 'filterRegex', 'logType'):
              if item in input_detail:
                  del input_detail[item]
  
          config = CommonRegLogConfigDetail(config_name, logstore_name, endpoint, log_path, file_pattern, time_format,
                                            log_begin_regex, log_parse_regex, reg_keys,
                                            topic_format, filter_keys, filter_keys_reg, logSample,
                                            log_type, **input_detail)
          return config
docs: Generate common logtail config from loaded json value
  
          :param json_value:
          :return: