Documentation forKiwi Syslog Server

Message content or counters in KSS NG

This option allows you to choose a variable or counter inside message text. The variable is then replaced with the current value before the message is sent. For example, $Message.MsgText is replaced with the text of the current syslog message.

To add a variable:

  1. From the Kiwi Syslog NG navigation bar, choose Setup > Rules.
  2. Locate an existing rule. If the rule does not exist, add a rule and start the New Rule wizard.
  3. If you are adding content or counters to the message of to an existing rule, select the rule and click Edit. If you are creating a new rule, navigate to the Actions step of the New Rule wizard.
  4. Click Add Action. Define the action name in the provided field.
  5. In the Action drop down, select any rule action that includes message text.

    Current rule actions with message text include E-mail message and Send syslog message.

  6. Position your cursor where you want to insert the variable in the message text box.
  7. Click and select a variable.

The following variables are available.

All of the message

Parameter

$Message.MsgAll

Explanation

The entire message as it appears on the display, including the time, date, priority and message text. Each field is space delimited.

Example

2005-10-10 11:28:04 Local7.Debug host.company.com. This is a test message.

Date

Parameter

$Message.MsgDate

Explanation

The date the message arrived in the format YYYY-MM-DD.

Example

2005-02-18

Time

Parameter

$Message.MsgTime

Explanation

The time the message arrived in the format HH:MM:SS.

Example

22:30:16

Facility

Parameter

$Message.MsgFacility

Explanation

The facility of the message in text format.

Example

Local7, Mail

Level

Parameter

$Message.MsgLevel

Explanation

The level of the message in text format.

Example

Debug, Info

Host address of sender

Parameter

$Message.MsgHost

Explanation

The host IP address of the sending device.

Example

192.168.1.1

The message text

Parameter

$Message.MsgText

Explanation

The message text part of the syslog message.

Example

This is a test message