@@ -85,7 +85,7 @@ in
8585 type = types.lines;
8686 default = ''stdin { type => "example" }'';
8787 description = "Logstash input configuration.";
88− example = ''
88+ example = literalExample ''
8989 # Read from journal
9090 pipe {
9191 command => "''${pkgs.systemd}/bin/journalctl -f -o json"
@@ -98,7 +98,7 @@ in
9898 type = types.lines;
9999 default = ''noop {}'';
100100 description = "logstash filter configuration.";
101− example = ''
101+ example = literalExample ''
102102 if [type] == "syslog" {
103103 # Keep only relevant systemd fields
104104 # http://www.freedesktop.org/software/systemd/man/systemd.journal-fields.html
@@ -114,7 +114,7 @@ in
114114
115115 outputConfig = mkOption {
116116 type = types.lines;
117− default = ''stdout { debug => true debug_format => "json"}'';
117+ default = literalExample ''stdout { debug => true debug_format => "json"}'';
118118 description = "Logstash output configuration.";
119119 example = ''
120120 redis { host => "localhost" data_type => "list" key => "logstash" codec => json }