Next Topic

Previous Topic

Book Contents

Extending Message Transformation

Users can extend Message Transformation to handle additional message sources and write custom rulesets by creating additional configuration files and storing them in the plugins directory under $TRAVERSE_HOME/plugin/messages/. Additional data sources should be defined in configuration files named as nn_src_yyy.xml while additional rulesets should be named nn_rule_yyy.xml where nn is a number and yyy is any freeform text).

As an example, you can add new log files to be monitored and a trap handler listening on port 2162 by creating the following two files in the $TRAVERSE_HOME/plugin/messages/ directory:

00_src_logs.xml

<source type="file" name="mylog">
	<enabled>false</enabled>
	<input>/var/log/mylogs</input>
</source>
<source type="file" name="apacheErrLog">
	<enabled>true</enabled>
	<input>/apache/logs/httpd.error</input>
</source>

00_src_traps.xml

<source type="trap" name="traps2">
	<enabled>true</enabled>
	<port>2162</port>
	<performHostnameLookup>false</performHostnameLookup>
</source>

The format for the rule files is described in the Traverse User Guide. Remember to restart the Message Handler component after editing or creating new files.