public class ExtractRule extends Object
| 构造器和说明 |
|---|
ExtractRule() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getBeginRegex() |
String |
getDelimiter() |
List<FilterKeyRegex> |
getFilterKeyRegex() |
List<String> |
getKeys() |
String |
getLogRegex() |
LogTemplate |
getLogTemplate() |
String |
getQuote() |
String |
getTimeFormat() |
String |
getTimeKey() |
String |
getUnMatchLogKey() |
boolean |
isUnMatchUpLoadSwitch() |
void |
setBeginRegex(String beginRegex) |
void |
setDelimiter(String delimiter) |
void |
setFilterKeyRegex(List<FilterKeyRegex> filterKeyRegex) |
void |
setKeys(List<String> keys) |
void |
setLogRegex(String logRegex) |
void |
setLogTemplate(LogTemplate logTemplate) |
void |
setQuote(String quote) |
void |
setTimeFormat(String timeFormat) |
void |
setTimeKey(String timeKey) |
void |
setUnMatchLogKey(String unMatchLogKey) |
void |
setUnMatchUpLoadSwitch(boolean unMatchUpLoadSwitch) |
public String getDelimiter()
public void setDelimiter(String delimiter)
delimiter - 日志分隔符public String getQuote()
public void setQuote(String quote)
quote - 引用符public String getBeginRegex()
public void setBeginRegex(String beginRegex)
beginRegex - 第一行日志需要匹配的正则表达式public String getLogRegex()
public void setLogRegex(String logRegex)
logRegex - 整条日志需要匹配的正则表达式public String getTimeKey()
public void setTimeKey(String timeKey)
timeKey - 日志时间字段的字段名称public String getTimeFormat()
public void setTimeFormat(String timeFormat)
timeFormat - 时间字段的解析格式public List<FilterKeyRegex> getFilterKeyRegex()
public void setFilterKeyRegex(List<FilterKeyRegex> filterKeyRegex)
filterKeyRegex - 过滤规则列表public boolean isUnMatchUpLoadSwitch()
public void setUnMatchUpLoadSwitch(boolean unMatchUpLoadSwitch)
unMatchUpLoadSwitch - 是否上传解析失败的日志public String getUnMatchLogKey()
public void setUnMatchLogKey(String unMatchLogKey)
unMatchLogKey - 当上传解析失败的日志时,解析失败的日志的 key 名称public LogTemplate getLogTemplate()
public void setLogTemplate(LogTemplate logTemplate)
logTemplate - 根据指定的日志模板自动提取日志字段Copyright © 2024. All rights reserved.