public class FreqPlugin extends LogDistillation.Plugin
Parameters:
attribute
(mandatory): the attribute's name
regexp
: use a regexp to extract value taken in account for the first attribute
regexp.group
(default: -1): which group to extract? If negative, all groups will be concatenated
attribute2
(default: none): second attribute to append
attribute3
(default: none): third attribute to append
attributes
(mandatory): the attributes' names, comma separated (no count limit)
sortItem
(default: count
): sort on which item? count
, value
,
valueLength
reverseOrder
(default: false
): by default, most frequent value are displayed first
valueDescriptions
: description to insert in the report instead of corresponding value (in java
properties format)
maxGlobalReport
(default: 5): maximum number of values inserted in global report
maxGroupReport
(default: 25): maximum number of values inserted in group report
SamplingPlugin
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
FreqPlugin.Freq |
Modifier and Type | Field and Description |
---|---|
protected String[] |
attributes |
protected LogType.AttributeInfo[] |
attributesInfo |
static String |
ID |
protected SortedSet<FreqPlugin.Freq> |
sorted |
static Plugin |
TYPE |
definition, group
Modifier | Constructor and Description |
---|---|
|
FreqPlugin(LogDistiller.Plugin definition) |
protected |
FreqPlugin(LogDistiller.Plugin definition,
boolean checkSampling) |
Modifier and Type | Method and Description |
---|---|
void |
addLogEvent(LogEvent logEvent)
Add a log event to this plugin instance.
|
protected void |
addLogEventToFreq(LogEvent logEvent,
FreqPlugin.Freq freq) |
void |
appendGlobalReport(ReportFormat.PluginReport report)
Append a summary of this plugin instance results to the global report.
|
void |
appendGroupReport(ReportFormat.PluginReport report)
Append a summary of this plugin instance results to the group report.
|
protected void |
appendLinkToFreqReport(ReportFormat.PluginReport report)
Append links to freq reports, for freq extensions.
|
void |
begin(File destinationDirectory)
Begin the log distillation for this plugin instance.
|
void |
end()
End the log distillation for this plugin instance.
|
addLogEvent, getDefinition, getGroup, getId
public static final String ID
protected SortedSet<FreqPlugin.Freq> sorted
protected final String[] attributes
protected transient LogType.AttributeInfo[] attributesInfo
public FreqPlugin(LogDistiller.Plugin definition)
protected FreqPlugin(LogDistiller.Plugin definition, boolean checkSampling)
public void begin(File destinationDirectory) throws FileNotFoundException
LogDistillation.Plugin
begin
in class LogDistillation.Plugin
destinationDirectory
- the directory where reports will be stored.FileNotFoundException
public void addLogEvent(LogEvent logEvent) throws IOException
LogDistillation.Plugin
addLogEvent
in class LogDistillation.Plugin
logEvent
- the log event.IOException
protected void addLogEventToFreq(LogEvent logEvent, FreqPlugin.Freq freq) throws IOException
IOException
public void end() throws IOException
LogDistillation.Plugin
end
in class LogDistillation.Plugin
IOException
public void appendGroupReport(ReportFormat.PluginReport report)
LogDistillation.Plugin
appendGroupReport
in class LogDistillation.Plugin
report
- the plugin report formatterpublic void appendGlobalReport(ReportFormat.PluginReport report)
LogDistillation.Plugin
appendGlobalReport
in class LogDistillation.Plugin
report
- the plugin report formatterprotected void appendLinkToFreqReport(ReportFormat.PluginReport report)
report
- the report formatterCopyright © 2004–2014. All rights reserved.