In this example we want to insert a line of configuration at the top of the file, because rsyslog arbitrarily requires that it be done this way :)
insert $MaxMessageSize before /files/etc/rsyslog.conf/*[position() = 1]
set /files/etc/rsyslog.conf/$MaxMessageSize 64k