Log Sources file-sampleCommented.ls.xml

<!-- This is the FILE Log Source configuration file.

The logs will be directly forwarded to the LMI appliance.

IMPORTANT: The file name must be composed of:

- an ID, for example, file-sample

- an extension, i.e. *.ls.xml.

-->

<!-- The Type refers to the type of Log Source. -->

<logsource type="file" schemaVersion="2.0">

<general>

<!-- Define whether the current Log Source is active (true - default value) or inactive (false) -->

<active>true</active>

<!-- Enter the FILE configuration label -->

<name>ls-file-template</name>

<!-- Enter the FILE configuration description -->

<description>Comment of the ls-file-template</description>

<!-- Enter the modification of the FILE configuration -->

<revision>

<!-- Enter the current FILE configuration file version number -->

<version>12</version>

<!-- Enter the FILE file author's name -->

<author>admin</author>

<!-- Enter the name of the user who last modified the file -->

<lastModifiedBy>admin</lastModifiedBy>

<!-- Enter the date and time of the FILE creation -->

<creationDate>2017-01-20T01:00:00-01:00</creationDate>

<!-- Enter the FILE last modification date and time -->

<lastModifiedDate>2017-01-25T03:40:10-01:00</lastModifiedDate>

</revision>

</general>

<!-- Enter log forwarding information -->

<forwarding>

<!-- Enter the information about the LMI connection necessary to send logs from the UC to the LMI server -->

<uldp>

<!-- Enter the LMI connection ID without the extension, e.g. uldp-sample -->

<connectionIds>

<connectionId>uldp-sampleCommented</connectionId>

</connectionIds>

<!-- Define whether the log message sent to the LMI server remains in a local time zone (false - default value) or is converted into UTC (true) time zone -->

<timeInUtc>false</timeInUtc>

</uldp>

</forwarding>

<!-- Enter log collection information -->

<collection>

<!-- Enter the possible maximum length for the message (65000 - default value) -->

<maxLineLength>65000</maxLineLength>

<!-- Enter the data format, for example, UTF8 -->

<charsetName></charsetName>

<!-- Enter general information about the file where the logs are located-->

<fileName>

<!-- Enter the absolute path of the log file to collect. If the log file is rotated, you may enter [id] or [date] in the filename.

for example, c:\temp\logFile[id].log to obtain file names such as logFile1.log or c:\temp\logFile[date].log to obtain file names such as logFile20110521.log-->

<absolutePath>c:\temp\logfile.log</absolutePath>

<!-- If you have entered [date] for the tag <absolutePath> above (e.g. c:\temp\logFile[date].log) , you must set this parameter to true (false - default value) -->

<useDateRolling>false</useDateRolling>

<!-- If you have set the tag <useDateRolling> to true, you must enter a date format, e.g. yyyyMMdd (see http://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html ) -->

<dateFormat>yyyyMMdd</dateFormat>

<!-- If you have entered [id] for the tag <absolutePath> above (e.g. c:\temp\logFile[id].log), you must set this parameter to true (false - default value) -->

<useIdRolling>false</useIdRolling>

<!-- If you have set the tag <useIdRolling> to true, you must enter the number of digits expected (1-9). UC can collect any file with an [id] whose number of digits is between 1 and 9 inclusive.

E.g. If you set 5, the following [id] will be taken into account: 1, 054, 586, 00599, 78945, etc.-->

<nbDigit>2</nbDigit>

</fileName>

</collection>

<!-- Enter log processing information -->

<processing>

<!-- Define whether the single message has several lines -->

<multiLine>

<!-- Define whether the current multi-line function is active (true) or inactive (false - default value) -->

<active>false</active>

<!-- Enter the type of multi-line logs, (jboss - default value) 'jboss', 'tomcat', 'weblogic', 'websphere' or 'custom' -->

<lineCombinerId>jboss</lineCombinerId>

<!-- If you set 'custom' in the <lineCombinerId> parameter above, you must set a regular expression matching the header of the first line of a log -->

<userDefinedRegExp></userDefinedRegExp>

<!-- Enter whether you want the UC to send messages that do not match the Header Regexp (true) or not (false - default value)-->

<keepHeadlessLog>false</keepHeadlessLog>

<!-- Enter the number of ms after which the multi-line logs are ready to be sent -->

<lineTimeout>3000</lineTimeout>

</multiLine>

<!-- Enter the name of the host used to pair logs on the LMI server -->

<hostname>customHostname.com</hostname>

<!-- Enter the name of the application used to pair logs on the LMI server -->

<appName>customApplicationName</appName>

</processing>

<!-- Enter log filtering information -->

<filter>

<!-- Enter a case insensitive regular expression to specify the messages to be matched. E.g.

"packet accepted" means that all the lines containing packet accepted are filtered

"^64\.242" means that all the lines that are beginning exactly with 64.242 are filtered

"846$" means that all the lines that are ending exactly with 846 are filtered -->

<messageFilter>packet accepted</messageFilter>

<!-- Define whether the matched messages are filtered (false - default value) or not (true) -->

<matchAcceptedMessage>false</matchAcceptedMessage>

</filter>

<!-- Enter a tag to filter, sort and search for log sources. Tags are case sensitive. -->

<tags>

<!-- You can enter as many tags as you need. The possible values are ._A-Za-z0-9 and blank space. -->

<tag>sample</tag>

<tag>commented</tag>

</tags>

</logsource>