Message structure
This block is used to obtain data processed by the program. There is a possibility to obtain data from message dictionary – key data, meta, raw raw_real. There is special value event for accessing whole structure.
Difference between raw and raw_real is on raw is already stripped to only valid syslog data - offset is applied, but in raw_real value is not stripped.
XML representation of message block
<xml xmlns="http://www.w3.org/1999/xhtml">
<block type="message">
<field name="OBJECT">msg</field>
</block>
<block type="message">
<field name="OBJECT">meta</field>
</block>
<block type="message">
<field name="OBJECT">raw</field>
</block>
<block type="message">
<field name="OBJECT">event</field>
</block>
</xml>
Message block is used twice in the example:
- If text message row: Reads data from “raw” key and then compares, if it contains word admin. If yes, it returns boolean value “true”.
- Update dictionary row: updates dictionary “message” key “data” by dictionary “item”.
Login permitted from 192.168.10.1/1234 to inside:192.168.1.1/https for user admin