Skip to content

Instantly share code, notes, and snippets.

@big-samantha
Created March 15, 2018 01:14
Show Gist options
  • Save big-samantha/ac0bee1739aca8dcb72884c7dbbb90ca to your computer and use it in GitHub Desktop.
Save big-samantha/ac0bee1739aca8dcb72884c7dbbb90ca to your computer and use it in GitHub Desktop.
Augeas Top Of File Configuration

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment