.. _prop-message-rawmsg:
.. _properties.message.rawmsg:

rawmsg
======

.. index::
   single: properties; rawmsg
   single: rawmsg

.. summary-start

Provides the received message exactly as rsyslog stored it.

.. summary-end

This property belongs to the **Message Properties** group.

:Name: rawmsg
:Category: Message Properties
:Type: string

Description
-----------
The message "as is". Should be useful for debugging and also if a message should
be forwarded totally unaltered. Please notice *EscapecontrolCharactersOnReceive*
is enabled by default, so it may be different from what was received in the
socket.

Usage
-----
.. _properties.message.rawmsg-usage:

.. code-block:: rsyslog

   template(name="example" type="list") {
       property(name="rawmsg")
   }

See also
--------
See :doc:`../../configuration/properties` for the category overview.
