Class: TencentCloud::Cls::V20201016::ExtractRuleInfo

Inherits:
TencentCloud::Common::AbstractModel
  • Object
show all
Defined in:
lib/v20201016/models.rb

Overview

日志提取规则

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(timekey = nil, timeformat = nil, delimiter = nil, logregex = nil, beginregex = nil, keys = nil, filterkeyregex = nil, unmatchuploadswitch = nil, unmatchlogkey = nil, backtracking = nil, isgbk = nil, jsonstandard = nil, protocol = nil, address = nil, parseprotocol = nil, metadatatype = nil, pathregex = nil, metatags = nil, eventlogrules = nil, advancefilterrules = nil) ⇒ ExtractRuleInfo

Returns a new instance of ExtractRuleInfo.



11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
# File 'lib/v20201016/models.rb', line 11155

def initialize(timekey=nil, timeformat=nil, delimiter=nil, logregex=nil, beginregex=nil, keys=nil, filterkeyregex=nil, unmatchuploadswitch=nil, unmatchlogkey=nil, backtracking=nil, isgbk=nil, jsonstandard=nil, protocol=nil, address=nil, parseprotocol=nil, metadatatype=nil, pathregex=nil, metatags=nil, eventlogrules=nil, advancefilterrules=nil)
  @TimeKey = timekey
  @TimeFormat = timeformat
  @Delimiter = delimiter
  @LogRegex = logregex
  @BeginRegex = beginregex
  @Keys = keys
  @FilterKeyRegex = filterkeyregex
  @UnMatchUpLoadSwitch = unmatchuploadswitch
  @UnMatchLogKey = unmatchlogkey
  @Backtracking = backtracking
  @IsGBK = isgbk
  @JsonStandard = jsonstandard
  @Protocol = protocol
  @Address = address
  @ParseProtocol = parseprotocol
  @MetadataType = metadatatype
  @PathRegex = pathregex
  @MetaTags = metatags
  @EventLogRules = eventlogrules
  @AdvanceFilterRules = advancefilterrules
end

Instance Attribute Details

#Address ⇒ Object

注意:

  • MetadataType为3时必填。
  • COS导入不支持此字段。 注意:
  • MetadataType为2时必填。
  • COS导入不支持此字段。 注意:
  • 2.9.3以下版本LogListener不支持, 请使用FilterKeyRegex配置日志过滤规则。
  • 自建k8s采集配置(CreateConfigExtra、ModifyConfigExtra)不支持此字段。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • MetaTags: —

    用户自定义元数据信息。

  • EventLogRules: —

    Windows事件日志采集规则,只有在LogType为windows_event_log时生效,其余类型无需填写。

  • AdvanceFilterRules: —

    日志过滤规则列表(新版)。



11153
11154
11155
# File 'lib/v20201016/models.rb', line 11153

def Address
  @Address
end

#AdvanceFilterRules ⇒ Object

注意:

  • MetadataType为3时必填。
  • COS导入不支持此字段。 注意:
  • MetadataType为2时必填。
  • COS导入不支持此字段。 注意:
  • 2.9.3以下版本LogListener不支持, 请使用FilterKeyRegex配置日志过滤规则。
  • 自建k8s采集配置(CreateConfigExtra、ModifyConfigExtra)不支持此字段。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • MetaTags: —

    用户自定义元数据信息。

  • EventLogRules: —

    Windows事件日志采集规则,只有在LogType为windows_event_log时生效,其余类型无需填写。

  • AdvanceFilterRules: —

    日志过滤规则列表(新版)。



11153
11154
11155
# File 'lib/v20201016/models.rb', line 11153

def AdvanceFilterRules
  @AdvanceFilterRules
end

#Backtracking ⇒ Object

注意:

  • MetadataType为3时必填。
  • COS导入不支持此字段。 注意:
  • MetadataType为2时必填。
  • COS导入不支持此字段。 注意:
  • 2.9.3以下版本LogListener不支持, 请使用FilterKeyRegex配置日志过滤规则。
  • 自建k8s采集配置(CreateConfigExtra、ModifyConfigExtra)不支持此字段。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • MetaTags: —

    用户自定义元数据信息。

  • EventLogRules: —

    Windows事件日志采集规则,只有在LogType为windows_event_log时生效,其余类型无需填写。

  • AdvanceFilterRules: —

    日志过滤规则列表(新版)。



11153
11154
11155
# File 'lib/v20201016/models.rb', line 11153

def Backtracking
  @Backtracking
end

#BeginRegex ⇒ Object

注意:

  • MetadataType为3时必填。
  • COS导入不支持此字段。 注意:
  • MetadataType为2时必填。
  • COS导入不支持此字段。 注意:
  • 2.9.3以下版本LogListener不支持, 请使用FilterKeyRegex配置日志过滤规则。
  • 自建k8s采集配置(CreateConfigExtra、ModifyConfigExtra)不支持此字段。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • MetaTags: —

    用户自定义元数据信息。

  • EventLogRules: —

    Windows事件日志采集规则,只有在LogType为windows_event_log时生效,其余类型无需填写。

  • AdvanceFilterRules: —

    日志过滤规则列表(新版)。



11153
11154
11155
# File 'lib/v20201016/models.rb', line 11153

def BeginRegex
  @BeginRegex
end

#Delimiter ⇒ Object

注意:

  • MetadataType为3时必填。
  • COS导入不支持此字段。 注意:
  • MetadataType为2时必填。
  • COS导入不支持此字段。 注意:
  • 2.9.3以下版本LogListener不支持, 请使用FilterKeyRegex配置日志过滤规则。
  • 自建k8s采集配置(CreateConfigExtra、ModifyConfigExtra)不支持此字段。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • MetaTags: —

    用户自定义元数据信息。

  • EventLogRules: —

    Windows事件日志采集规则,只有在LogType为windows_event_log时生效,其余类型无需填写。

  • AdvanceFilterRules: —

    日志过滤规则列表(新版)。



11153
11154
11155
# File 'lib/v20201016/models.rb', line 11153

def Delimiter
  @Delimiter
end

#EventLogRules ⇒ Object

注意:

  • MetadataType为3时必填。
  • COS导入不支持此字段。 注意:
  • MetadataType为2时必填。
  • COS导入不支持此字段。 注意:
  • 2.9.3以下版本LogListener不支持, 请使用FilterKeyRegex配置日志过滤规则。
  • 自建k8s采集配置(CreateConfigExtra、ModifyConfigExtra)不支持此字段。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • MetaTags: —

    用户自定义元数据信息。

  • EventLogRules: —

    Windows事件日志采集规则,只有在LogType为windows_event_log时生效,其余类型无需填写。

  • AdvanceFilterRules: —

    日志过滤规则列表(新版)。



11153
11154
11155
# File 'lib/v20201016/models.rb', line 11153

def EventLogRules
  @EventLogRules
end

#FilterKeyRegex ⇒ Object

注意:

  • MetadataType为3时必填。
  • COS导入不支持此字段。 注意:
  • MetadataType为2时必填。
  • COS导入不支持此字段。 注意:
  • 2.9.3以下版本LogListener不支持, 请使用FilterKeyRegex配置日志过滤规则。
  • 自建k8s采集配置(CreateConfigExtra、ModifyConfigExtra)不支持此字段。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • MetaTags: —

    用户自定义元数据信息。

  • EventLogRules: —

    Windows事件日志采集规则,只有在LogType为windows_event_log时生效,其余类型无需填写。

  • AdvanceFilterRules: —

    日志过滤规则列表(新版)。



11153
11154
11155
# File 'lib/v20201016/models.rb', line 11153

def FilterKeyRegex
  @FilterKeyRegex
end

#IsGBK ⇒ Object

注意:

  • MetadataType为3时必填。
  • COS导入不支持此字段。 注意:
  • MetadataType为2时必填。
  • COS导入不支持此字段。 注意:
  • 2.9.3以下版本LogListener不支持, 请使用FilterKeyRegex配置日志过滤规则。
  • 自建k8s采集配置(CreateConfigExtra、ModifyConfigExtra)不支持此字段。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • MetaTags: —

    用户自定义元数据信息。

  • EventLogRules: —

    Windows事件日志采集规则,只有在LogType为windows_event_log时生效,其余类型无需填写。

  • AdvanceFilterRules: —

    日志过滤规则列表(新版)。



11153
11154
11155
# File 'lib/v20201016/models.rb', line 11153

def IsGBK
  @IsGBK
end

#JsonStandard ⇒ Object

注意:

  • MetadataType为3时必填。
  • COS导入不支持此字段。 注意:
  • MetadataType为2时必填。
  • COS导入不支持此字段。 注意:
  • 2.9.3以下版本LogListener不支持, 请使用FilterKeyRegex配置日志过滤规则。
  • 自建k8s采集配置(CreateConfigExtra、ModifyConfigExtra)不支持此字段。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • MetaTags: —

    用户自定义元数据信息。

  • EventLogRules: —

    Windows事件日志采集规则,只有在LogType为windows_event_log时生效,其余类型无需填写。

  • AdvanceFilterRules: —

    日志过滤规则列表(新版)。



11153
11154
11155
# File 'lib/v20201016/models.rb', line 11153

def JsonStandard
  @JsonStandard
end

#Keys ⇒ Object

注意:

  • MetadataType为3时必填。
  • COS导入不支持此字段。 注意:
  • MetadataType为2时必填。
  • COS导入不支持此字段。 注意:
  • 2.9.3以下版本LogListener不支持, 请使用FilterKeyRegex配置日志过滤规则。
  • 自建k8s采集配置(CreateConfigExtra、ModifyConfigExtra)不支持此字段。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • MetaTags: —

    用户自定义元数据信息。

  • EventLogRules: —

    Windows事件日志采集规则,只有在LogType为windows_event_log时生效,其余类型无需填写。

  • AdvanceFilterRules: —

    日志过滤规则列表(新版)。



11153
11154
11155
# File 'lib/v20201016/models.rb', line 11153

def Keys
  @Keys
end

#LogRegex ⇒ Object

注意:

  • MetadataType为3时必填。
  • COS导入不支持此字段。 注意:
  • MetadataType为2时必填。
  • COS导入不支持此字段。 注意:
  • 2.9.3以下版本LogListener不支持, 请使用FilterKeyRegex配置日志过滤规则。
  • 自建k8s采集配置(CreateConfigExtra、ModifyConfigExtra)不支持此字段。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • MetaTags: —

    用户自定义元数据信息。

  • EventLogRules: —

    Windows事件日志采集规则,只有在LogType为windows_event_log时生效,其余类型无需填写。

  • AdvanceFilterRules: —

    日志过滤规则列表(新版)。



11153
11154
11155
# File 'lib/v20201016/models.rb', line 11153

def LogRegex
  @LogRegex
end

#MetadataType ⇒ Object

注意:

  • MetadataType为3时必填。
  • COS导入不支持此字段。 注意:
  • MetadataType为2时必填。
  • COS导入不支持此字段。 注意:
  • 2.9.3以下版本LogListener不支持, 请使用FilterKeyRegex配置日志过滤规则。
  • 自建k8s采集配置(CreateConfigExtra、ModifyConfigExtra)不支持此字段。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • MetaTags: —

    用户自定义元数据信息。

  • EventLogRules: —

    Windows事件日志采集规则,只有在LogType为windows_event_log时生效,其余类型无需填写。

  • AdvanceFilterRules: —

    日志过滤规则列表(新版)。



11153
11154
11155
# File 'lib/v20201016/models.rb', line 11153

def MetadataType
  @MetadataType
end

#MetaTags ⇒ Object

注意:

  • MetadataType为3时必填。
  • COS导入不支持此字段。 注意:
  • MetadataType为2时必填。
  • COS导入不支持此字段。 注意:
  • 2.9.3以下版本LogListener不支持, 请使用FilterKeyRegex配置日志过滤规则。
  • 自建k8s采集配置(CreateConfigExtra、ModifyConfigExtra)不支持此字段。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • MetaTags: —

    用户自定义元数据信息。

  • EventLogRules: —

    Windows事件日志采集规则,只有在LogType为windows_event_log时生效,其余类型无需填写。

  • AdvanceFilterRules: —

    日志过滤规则列表(新版)。



11153
11154
11155
# File 'lib/v20201016/models.rb', line 11153

def MetaTags
  @MetaTags
end

#ParseProtocol ⇒ Object

注意:

  • MetadataType为3时必填。
  • COS导入不支持此字段。 注意:
  • MetadataType为2时必填。
  • COS导入不支持此字段。 注意:
  • 2.9.3以下版本LogListener不支持, 请使用FilterKeyRegex配置日志过滤规则。
  • 自建k8s采集配置(CreateConfigExtra、ModifyConfigExtra)不支持此字段。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • MetaTags: —

    用户自定义元数据信息。

  • EventLogRules: —

    Windows事件日志采集规则,只有在LogType为windows_event_log时生效,其余类型无需填写。

  • AdvanceFilterRules: —

    日志过滤规则列表(新版)。



11153
11154
11155
# File 'lib/v20201016/models.rb', line 11153

def ParseProtocol
  @ParseProtocol
end

#PathRegex ⇒ Object

注意:

  • MetadataType为3时必填。
  • COS导入不支持此字段。 注意:
  • MetadataType为2时必填。
  • COS导入不支持此字段。 注意:
  • 2.9.3以下版本LogListener不支持, 请使用FilterKeyRegex配置日志过滤规则。
  • 自建k8s采集配置(CreateConfigExtra、ModifyConfigExtra)不支持此字段。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • MetaTags: —

    用户自定义元数据信息。

  • EventLogRules: —

    Windows事件日志采集规则,只有在LogType为windows_event_log时生效,其余类型无需填写。

  • AdvanceFilterRules: —

    日志过滤规则列表(新版)。



11153
11154
11155
# File 'lib/v20201016/models.rb', line 11153

def PathRegex
  @PathRegex
end

#Protocol ⇒ Object

注意:

  • MetadataType为3时必填。
  • COS导入不支持此字段。 注意:
  • MetadataType为2时必填。
  • COS导入不支持此字段。 注意:
  • 2.9.3以下版本LogListener不支持, 请使用FilterKeyRegex配置日志过滤规则。
  • 自建k8s采集配置(CreateConfigExtra、ModifyConfigExtra)不支持此字段。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • MetaTags: —

    用户自定义元数据信息。

  • EventLogRules: —

    Windows事件日志采集规则,只有在LogType为windows_event_log时生效,其余类型无需填写。

  • AdvanceFilterRules: —

    日志过滤规则列表(新版)。



11153
11154
11155
# File 'lib/v20201016/models.rb', line 11153

def Protocol
  @Protocol
end

#TimeFormat ⇒ Object

注意:

  • MetadataType为3时必填。
  • COS导入不支持此字段。 注意:
  • MetadataType为2时必填。
  • COS导入不支持此字段。 注意:
  • 2.9.3以下版本LogListener不支持, 请使用FilterKeyRegex配置日志过滤规则。
  • 自建k8s采集配置(CreateConfigExtra、ModifyConfigExtra)不支持此字段。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • MetaTags: —

    用户自定义元数据信息。

  • EventLogRules: —

    Windows事件日志采集规则,只有在LogType为windows_event_log时生效,其余类型无需填写。

  • AdvanceFilterRules: —

    日志过滤规则列表(新版)。



11153
11154
11155
# File 'lib/v20201016/models.rb', line 11153

def TimeFormat
  @TimeFormat
end

#TimeKey ⇒ Object

注意:

  • MetadataType为3时必填。
  • COS导入不支持此字段。 注意:
  • MetadataType为2时必填。
  • COS导入不支持此字段。 注意:
  • 2.9.3以下版本LogListener不支持, 请使用FilterKeyRegex配置日志过滤规则。
  • 自建k8s采集配置(CreateConfigExtra、ModifyConfigExtra)不支持此字段。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • MetaTags: —

    用户自定义元数据信息。

  • EventLogRules: —

    Windows事件日志采集规则,只有在LogType为windows_event_log时生效,其余类型无需填写。

  • AdvanceFilterRules: —

    日志过滤规则列表(新版)。



11153
11154
11155
# File 'lib/v20201016/models.rb', line 11153

def TimeKey
  @TimeKey
end

#UnMatchLogKey ⇒ Object

注意:

  • MetadataType为3时必填。
  • COS导入不支持此字段。 注意:
  • MetadataType为2时必填。
  • COS导入不支持此字段。 注意:
  • 2.9.3以下版本LogListener不支持, 请使用FilterKeyRegex配置日志过滤规则。
  • 自建k8s采集配置(CreateConfigExtra、ModifyConfigExtra)不支持此字段。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • MetaTags: —

    用户自定义元数据信息。

  • EventLogRules: —

    Windows事件日志采集规则,只有在LogType为windows_event_log时生效,其余类型无需填写。

  • AdvanceFilterRules: —

    日志过滤规则列表(新版)。



11153
11154
11155
# File 'lib/v20201016/models.rb', line 11153

def UnMatchLogKey
  @UnMatchLogKey
end

#UnMatchUpLoadSwitch ⇒ Object

注意:

  • MetadataType为3时必填。
  • COS导入不支持此字段。 注意:
  • MetadataType为2时必填。
  • COS导入不支持此字段。 注意:
  • 2.9.3以下版本LogListener不支持, 请使用FilterKeyRegex配置日志过滤规则。
  • 自建k8s采集配置(CreateConfigExtra、ModifyConfigExtra)不支持此字段。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • MetaTags: —

    用户自定义元数据信息。

  • EventLogRules: —

    Windows事件日志采集规则,只有在LogType为windows_event_log时生效,其余类型无需填写。

  • AdvanceFilterRules: —

    日志过滤规则列表(新版)。



11153
11154
11155
# File 'lib/v20201016/models.rb', line 11153

def UnMatchUpLoadSwitch
  @UnMatchUpLoadSwitch
end

Instance Method Details

#deserialize(params) ⇒ Object



11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
# File 'lib/v20201016/models.rb', line 11178

def deserialize(params)
  @TimeKey = params['TimeKey']
  @TimeFormat = params['TimeFormat']
  @Delimiter = params['Delimiter']
  @LogRegex = params['LogRegex']
  @BeginRegex = params['BeginRegex']
  @Keys = params['Keys']
  unless params['FilterKeyRegex'].nil?
    @FilterKeyRegex = []
    params['FilterKeyRegex'].each do |i|
      keyregexinfo_tmp = KeyRegexInfo.new
      keyregexinfo_tmp.deserialize(i)
      @FilterKeyRegex << keyregexinfo_tmp
    end
  end
  @UnMatchUpLoadSwitch = params['UnMatchUpLoadSwitch']
  @UnMatchLogKey = params['UnMatchLogKey']
  @Backtracking = params['Backtracking']
  @IsGBK = params['IsGBK']
  @JsonStandard = params['JsonStandard']
  @Protocol = params['Protocol']
  @Address = params['Address']
  @ParseProtocol = params['ParseProtocol']
  @MetadataType = params['MetadataType']
  @PathRegex = params['PathRegex']
  unless params['MetaTags'].nil?
    @MetaTags = []
    params['MetaTags'].each do |i|
      metataginfo_tmp = MetaTagInfo.new
      metataginfo_tmp.deserialize(i)
      @MetaTags << metataginfo_tmp
    end
  end
  unless params['EventLogRules'].nil?
    @EventLogRules = []
    params['EventLogRules'].each do |i|
      eventlog_tmp = EventLog.new
      eventlog_tmp.deserialize(i)
      @EventLogRules << eventlog_tmp
    end
  end
  unless params['AdvanceFilterRules'].nil?
    @AdvanceFilterRules = []
    params['AdvanceFilterRules'].each do |i|
      advancefilterruleinfo_tmp = AdvanceFilterRuleInfo.new
      advancefilterruleinfo_tmp.deserialize(i)
      @AdvanceFilterRules << advancefilterruleinfo_tmp
    end
  end
end