Improve option descriptions a bit
This commit is contained in:
parent
bb9ee6a13f
commit
b0855d59a1
@ -11,20 +11,25 @@ in
|
|||||||
###### interface
|
###### interface
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
|
|
||||||
services.logstash = {
|
services.logstash = {
|
||||||
|
|
||||||
enable = mkOption {
|
enable = mkOption {
|
||||||
|
type = types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
description = "Enable logstash";
|
description = "Enable logstash.";
|
||||||
};
|
};
|
||||||
|
|
||||||
enableWeb = mkOption {
|
enableWeb = mkOption {
|
||||||
|
type = types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
description = "Enable logstash web interface";
|
description = "Enable the logstash web interface.";
|
||||||
};
|
};
|
||||||
|
|
||||||
inputConfig = mkOption {
|
inputConfig = mkOption {
|
||||||
|
type = types.lines;
|
||||||
default = ''stdin { type => "example" }'';
|
default = ''stdin { type => "example" }'';
|
||||||
description = "Logstash input configuration";
|
description = "Logstash input configuration.";
|
||||||
example = ''
|
example = ''
|
||||||
# Read from journal
|
# Read from journal
|
||||||
pipe {
|
pipe {
|
||||||
@ -35,8 +40,9 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
filterConfig = mkOption {
|
filterConfig = mkOption {
|
||||||
|
type = types.lines;
|
||||||
default = ''noop {}'';
|
default = ''noop {}'';
|
||||||
description = "logstash filter configuration";
|
description = "logstash filter configuration.";
|
||||||
example = ''
|
example = ''
|
||||||
if [type] == "syslog" {
|
if [type] == "syslog" {
|
||||||
# Keep only relevant systemd fields
|
# Keep only relevant systemd fields
|
||||||
@ -52,13 +58,15 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
outputConfig = mkOption {
|
outputConfig = mkOption {
|
||||||
|
type = types.lines;
|
||||||
default = ''stdout { debug => true debug_format => "json"}'';
|
default = ''stdout { debug => true debug_format => "json"}'';
|
||||||
description = "Logstash output configuration";
|
description = "Logstash output configuration.";
|
||||||
example = ''
|
example = ''
|
||||||
redis { host => "localhost" data_type => "list" key => "logstash" codec => json }
|
redis { host => "localhost" data_type => "list" key => "logstash" codec => json }
|
||||||
elasticsearch { embedded => true }
|
elasticsearch { embedded => true }
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user