<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE lire:dlf-schema PUBLIC
  "-//LogReport.ORG//DTD Lire DLF Schema Markup Language V1.1//EN"
  "http://www.logreport.org/LDSML/1.1/ldsml.dtd">
<lire:dlf-schema 
 xmlns:lire="http://www.logreport.org/LDSML/"
 superservice="myschema" 
 timestamp="ts_field">

 <!--
 This is an example of a schema specification file. 

 It defines a DLF schema named 'myschema' which has 4 fields:

 ts_field -- contains the record timestamp.

 string_field --  a string field

 int_field -- an integer field

 host_field -- a field containing an IP address or hostname.

 In your schema file, you'll want to change the 'superservice' and
 'timestamp' attribute of the root element. 

 The superservice attribute contains the name of the schema.

 The timestamp attribute contains the name of the field which
 contains the DLF record timestamp (used by timegroup report
 operations).
 
 The schema specification file has to be named <schema_name>.xml and
 installed in one of the directories listed in the 'lr_schemas_path'
 configuration variable. Its default value contains the following
 directories:

  - $HOME/.lire/schemas

  - <datadir>/lire/schemas

 -->

 <lire:title>The MySchema DLF schema (Your schema's title)</lire:title>
 <lire:description>
  <para>This DLF schema is used by applications whose log model
   follows the 'MyFormat' specification.
  </para>
 </lire:description>

 <!-- Each field is described by a lire:field element. 

 The 'name' attribute is used to set the field's name.

 Type 'type' attribute contains the field's type. There are quite a few
 types, but the important ones are:

 host/ip/string/int/number/bytes/timestamp

 The 'label' attribute is used in reports.

 -->
 <lire:field name="ts_field" type="timestamp" label="Timestamp">
  <lire:description>
   <para>The timestamp at which the event occured.</para>
  </lire:description>
 </lire:field>

 <lire:field name="string_field" type="string" label="A String">
  <lire:description>
   <para>Description of what this field should contains.</para>
  </lire:description>
 </lire:field>

 <lire:field name="int_field" type="int" label="An integer" />

 <lire:field name="host_field" type="host" label="An host">
  <lire:description>
   <para>Host or ip address of the server which generated the event.</para>
  </lire:description>
 </lire:field>

</lire:dlf-schema>
