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 Form| Modifier 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, getIdpublic 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.Pluginbegin in class LogDistillation.PlugindestinationDirectory - the directory where reports will be stored.FileNotFoundExceptionpublic void addLogEvent(LogEvent logEvent) throws IOException
LogDistillation.PluginaddLogEvent in class LogDistillation.PluginlogEvent - the log event.IOExceptionprotected void addLogEventToFreq(LogEvent logEvent, FreqPlugin.Freq freq) throws IOException
IOExceptionpublic void end() throws IOException
LogDistillation.Pluginend in class LogDistillation.PluginIOExceptionpublic void appendGroupReport(ReportFormat.PluginReport report)
LogDistillation.PluginappendGroupReport in class LogDistillation.Pluginreport - the plugin report formatterpublic void appendGlobalReport(ReportFormat.PluginReport report)
LogDistillation.PluginappendGlobalReport in class LogDistillation.Pluginreport - the plugin report formatterprotected void appendLinkToFreqReport(ReportFormat.PluginReport report)
report - the report formatterCopyright © 2004–2014. All rights reserved.