logdistiller-1_4.dtd: Elements - Entities - Source | Intro - Index
FRAMES / NO FRAMES

LogDistiller


<logdistiller> Root element

LogDistiller's classification rules root element.

<logdistiller>'s children
NameCardinality
categoryAny number
descriptionOnly one
groupAt least one
logtypeOnly one
outputOnly one
propertyAny number
<logdistiller>'s attributes
NameValuesDefault
idMatch the ID rules.
Element's model:

(property*, description, logtype, output, category*, group+)


@id Attribute of logdistiller

the identifier that will be used in reports

Possible values: Match the ID rules. - Required


<property/> Child of logdistiller

A property definition. After its definition, property's value can be referenced in params, descriptions or matches with ${property-name} syntax. The property value set in rules definition file can be overridden at runtime by LogDistiller's Ant task through equivalent property element.

Example:

<property name="logs.subdir" value=""/>

<property>'s attributes
NameValuesDefault
nameMatch the NMTOKENS rules.
value

This element is always empty.


@name Attribute of property

name of the property

Possible values: Match the NMTOKENS rules. - Required


@value Attribute of property

value of the property

Required


<description> Child of group, logdistiller

Description of the corresponding element, which will be printed in reports, after property substitution: ${property-name} is replaced by property's value.


<logtype> Child of logdistiller

Logtype of the logs that will be distilled.

<logtype>'s children
NameCardinality
attributesOne or none
paramAny number
<logtype>'s attributes
NameValuesDefault
idMatch the ID rules.
Element's model:

(param*, attributes?)


@id Attribute of logtype

Element identifier.

Possible values: Match the ID rules. - Required


<param> Child of group, logtype, plugin, report, output

A parameter definition, to customize its parent element. Parameter's value is read from element's content, after property substitution: ${property-name} is replaced by property's value.

<param>'s attributes
NameValuesDefault
nameMatch the NMTOKENS rules.

@name Attribute of param

name of the parameter. Available names vary depending on the usage context.

Possible values: Match the NMTOKENS rules. - Required


<attributes> Child of logtype

Attributes that will be available for log events.

<attributes>'s children
NameCardinality
extensionAny number
providedOnly one
Element's model:

(provided, extension*)


<provided> Child of attributes

Attributes directly provided by the log type.


<extension> Child of attributes

Attributes calculated with a regexp on log type provided one.

<extension>'s attributes
NameValuesDefault
provides
source

@source Attribute of extension

attribute on which the regexp will be applied.

Required


@provides Attribute of extension

attribute names that will be provided by this extension.

Required


<output> Child of logdistiller

Definition of the output of the logdistillation.

<output>'s children
NameCardinality
paramAny number
reportAny number
<output>'s attributes
NameValuesDefault
content
directory
skipMatch the IDREF rules.
url
Element's model:

(param*, report*)


@directory Attribute of output

the directory where all generated files will be stored

Required


@url Attribute of output

the url where the reports can be downloaded (to enable links in reports)


@content Attribute of output

content description of the data processed for the output

Required


@skip Attribute of output

id of the category or group that must be skipped in the analysis.

Possible values: Match the IDREF rules.


<report> Child of group, output

Definition of a report.

<report>'s children
NameCardinality
paramAny number
<report>'s attributes
NameValuesDefault
formatMatch the NMTOKEN rules.txt
publisherMatch the NMTOKEN rules.
Element's model:

(param*)


@publisher Attribute of report

publisher id of the report: file, mail, feed, ...

Possible values: Match the NMTOKEN rules. - Required


@format Attribute of report

(for future extension) format of the report: txt, html, pdf, ...

Possible values: Match the NMTOKEN rules. - Default value: txt


<category> Child of logdistiller

A category definition, to aggregate multiple correlated groups in the global report. Category's description is read from element's content.

<category>'s attributes
NameValuesDefault
idMatch the ID rules.

@id Attribute of category

the identifier of the category, which will be referenced by corresponding group definitions

Possible values: Match the ID rules. - Required


<group> Child of logdistiller

A group definition, to describe the rules that log events must match to be counted in it.

<group>'s children
NameCardinality
conditionAny number
descriptionOnly one
paramAny number
pluginAny number
reportAny number
<group>'s attributes
NameValuesDefault
categoryMatch the IDREF rules.
continueProcessingtrue, falsefalse
idMatch the ID rules.
savetrue, falsetrue
Element's model:

(description, param*, condition*, report*, plugin*)


@id Attribute of group

the identifier that will be printed in reports and used as a basename for files corresponding to this group

Possible values: Match the ID rules. - Required


@continueProcessing Attribute of group

if a log event corresponds to this group, should the log event continue to be compared to the next groups or simply stop? By default, the classification of a log event stops after the first match: a log event is assigned to only one group.

Possible values: true, false - Default value: false


@save Attribute of group

should the log events in this group be saved in a file? Log events are saved in a file named id.log.

Possible values: true, false - Default value: true


@category Attribute of group

a group can take part in a category by referring category's id

Possible values: Match the IDREF rules.


<condition> Child of group

A definition of a condition that a log event must match to be part of corresponding group. A condition is composed of one ore more attribute match: a log event must match every attribute for the condition to be ok. If there are multiple conditions defined for a group, a log event has to match only one condition to be part of the group.

<condition>'s children
NameCardinality
matchAt least one
<condition>'s attributes
NameValuesDefault
tags
Element's model:

(match+)


@tags Attribute of condition

affect some tags (comma separated) to this condition, for later use by plugins, that can now differentiate if a log event was matched by this condition or another one.


<match> Child of condition

A definition of an attribute match: the log event's attribute is compared to this element's value.

Example:

<match attribute="timestamp" type="contains">${date}</match>
<match attribute="severity" type="!equals">Error</match>
<match attribute="message_text" type="regexp">Server state changed to \S+</match>

<match>'s attributes
NameValuesDefault
attribute
type

@attribute Attribute of match

the name of the log event attribute to test

Required


@type Attribute of match

the type of comparison that has to be made: it can be contains, equals, startsWith, endsWith, regexp or the negation of the test when prefixed with ! (!contains, !equals, !startsWith, !endsWith, !regexp)

Required


<plugin> Child of group

Activation of a plugin for log events in corresponding group.

<plugin>'s children
NameCardinality
paramAny number
<plugin>'s attributes
NameValuesDefault
globalReporttrue, falsetrue
groupReporttrue, falsetrue
type
Element's model:

(param*)


@type Attribute of plugin

type of the plugin

Required


@globalReport Attribute of plugin

add info computed by this plugin to the global report?

Possible values: true, false - Default value: true


@groupReport Attribute of plugin

add info computed by this plugin to the group report?

Possible values: true, false - Default value: true