tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
logstash module: use literalExample
Robin Gloster
10 years ago
e1493f2b
9c249a3a
+3
-3
1 changed file
expand all
collapse all
unified
split
nixos
modules
services
logging
logstash.nix
+3
-3
nixos/modules/services/logging/logstash.nix
···
85
85
type = types.lines;
86
86
default = ''stdin { type => "example" }'';
87
87
description = "Logstash input configuration.";
88
88
-
example = ''
88
88
+
example = literalExample ''
89
89
# Read from journal
90
90
pipe {
91
91
command => "''${pkgs.systemd}/bin/journalctl -f -o json"
···
98
98
type = types.lines;
99
99
default = ''noop {}'';
100
100
description = "logstash filter configuration.";
101
101
-
example = ''
101
101
+
example = literalExample ''
102
102
if [type] == "syslog" {
103
103
# Keep only relevant systemd fields
104
104
# http://www.freedesktop.org/software/systemd/man/systemd.journal-fields.html
···
114
114
115
115
outputConfig = mkOption {
116
116
type = types.lines;
117
117
-
default = ''stdout { debug => true debug_format => "json"}'';
117
117
+
default = literalExample ''stdout { debug => true debug_format => "json"}'';
118
118
description = "Logstash output configuration.";
119
119
example = ''
120
120
redis { host => "localhost" data_type => "list" key => "logstash" codec => json }