public class SamplingPlugin extends FreqPlugin
Parameters (added to FreqPlugin's parameters):
sampling.filename (default: [id]-sampling.log): name of the file to save the sample of
log events for each attribute's value.sampling.maxCount (default: 10, -1 = no limit): number of log events to save for each attribute's
value.sampling.maxSize (default: -1 = no limit): maximum size (in kb) of the sample fileFreqPlugin,
Serialized FormFreqPlugin.Freq| Modifier and Type | Field and Description |
|---|---|
static String |
ID |
static Plugin |
TYPE |
attributes, attributesInfo, sorteddefinition, group| Constructor and Description |
|---|
SamplingPlugin(LogDistiller.Plugin definition) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLogEventToFreq(LogEvent logEvent,
FreqPlugin.Freq freq) |
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.
|
protected PrintStream |
getSamplingLogStream() |
addLogEvent, appendGlobalReport, appendGroupReportaddLogEvent, getDefinition, getGroup, getIdpublic static final String ID
public SamplingPlugin(LogDistiller.Plugin definition)
public void begin(File destinationDirectory) throws FileNotFoundException
LogDistillation.Pluginbegin in class FreqPlugindestinationDirectory - the directory where reports will be stored.FileNotFoundExceptionprotected PrintStream getSamplingLogStream() throws FileNotFoundException
FileNotFoundExceptionpublic void addLogEventToFreq(LogEvent logEvent, FreqPlugin.Freq freq) throws IOException
addLogEventToFreq in class FreqPluginIOExceptionpublic void end() throws IOException
LogDistillation.Pluginend in class FreqPluginIOExceptionprotected void appendLinkToFreqReport(ReportFormat.PluginReport report)
FreqPluginappendLinkToFreqReport in class FreqPluginreport - the report formatterCopyright © 2004–2014. All rights reserved.