diff options
author | Robin Gloster <mail@glob.in> | 2016-02-13 13:54:27 +0000 |
---|---|---|
committer | Robin Gloster <mail@glob.in> | 2016-02-13 15:03:09 +0000 |
commit | e1493f2ba77f17dd397d798752a49408956a38c8 (patch) | |
tree | d39be360b6234b4f3c03eead11fac779455068b7 /nixos | |
parent | 9c249a3adfbe07d31b2693ab9a3081cf37371435 (diff) | |
download | nixpkgs-e1493f2ba77f17dd397d798752a49408956a38c8.tar nixpkgs-e1493f2ba77f17dd397d798752a49408956a38c8.tar.gz nixpkgs-e1493f2ba77f17dd397d798752a49408956a38c8.tar.bz2 nixpkgs-e1493f2ba77f17dd397d798752a49408956a38c8.tar.lz nixpkgs-e1493f2ba77f17dd397d798752a49408956a38c8.tar.xz nixpkgs-e1493f2ba77f17dd397d798752a49408956a38c8.tar.zst nixpkgs-e1493f2ba77f17dd397d798752a49408956a38c8.zip |
logstash module: use literalExample
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/logging/logstash.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/modules/services/logging/logstash.nix b/nixos/modules/services/logging/logstash.nix index e019e6c3f23..d27456e59e8 100644 --- a/nixos/modules/services/logging/logstash.nix +++ b/nixos/modules/services/logging/logstash.nix @@ -85,7 +85,7 @@ in type = types.lines; default = ''stdin { type => "example" }''; description = "Logstash input configuration."; - example = '' + example = literalExample '' # Read from journal pipe { command => "''${pkgs.systemd}/bin/journalctl -f -o json" @@ -98,7 +98,7 @@ in type = types.lines; default = ''noop {}''; description = "logstash filter configuration."; - example = '' + example = literalExample '' if [type] == "syslog" { # Keep only relevant systemd fields # http://www.freedesktop.org/software/systemd/man/systemd.journal-fields.html @@ -114,7 +114,7 @@ in outputConfig = mkOption { type = types.lines; - default = ''stdout { debug => true debug_format => "json"}''; + default = literalExample ''stdout { debug => true debug_format => "json"}''; description = "Logstash output configuration."; example = '' redis { host => "localhost" data_type => "list" key => "logstash" codec => json } |