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, sorted
definition, 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, appendGroupReport
addLogEvent, getDefinition, getGroup, getId
public static final String ID
public SamplingPlugin(LogDistiller.Plugin definition)
public void begin(File destinationDirectory) throws FileNotFoundException
LogDistillation.Plugin
begin
in class FreqPlugin
destinationDirectory
- the directory where reports will be stored.FileNotFoundException
protected PrintStream getSamplingLogStream() throws FileNotFoundException
FileNotFoundException
public void addLogEventToFreq(LogEvent logEvent, FreqPlugin.Freq freq) throws IOException
addLogEventToFreq
in class FreqPlugin
IOException
public void end() throws IOException
LogDistillation.Plugin
end
in class FreqPlugin
IOException
protected void appendLinkToFreqReport(ReportFormat.PluginReport report)
FreqPlugin
appendLinkToFreqReport
in class FreqPlugin
report
- the report formatterCopyright © 2004–2014. All rights reserved.