summary refs log tree commit diff
path: root/nixos/modules/services/logging/logstash.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2016-12-20 18:26:49 +0100
committermakefu <github@syntax-fehler.de>2017-01-13 10:19:19 +0100
commit10303e9e47525389334222a441010edebe972513 (patch)
tree3f444e5bc729f3d567f9fbdd3c06bdd95873f81e /nixos/modules/services/logging/logstash.nix
parente6d28d6643139e50ba231ac4dfa1928006002880 (diff)
downloadnixpkgs-10303e9e47525389334222a441010edebe972513.tar
nixpkgs-10303e9e47525389334222a441010edebe972513.tar.gz
nixpkgs-10303e9e47525389334222a441010edebe972513.tar.bz2
nixpkgs-10303e9e47525389334222a441010edebe972513.tar.lz
nixpkgs-10303e9e47525389334222a441010edebe972513.tar.xz
nixpkgs-10303e9e47525389334222a441010edebe972513.tar.zst
nixpkgs-10303e9e47525389334222a441010edebe972513.zip
services.logstash: update example and default filter
Diffstat (limited to 'nixos/modules/services/logging/logstash.nix')
-rw-r--r--nixos/modules/services/logging/logstash.nix10
1 files changed, 5 insertions, 5 deletions
diff --git a/nixos/modules/services/logging/logstash.nix b/nixos/modules/services/logging/logstash.nix
index 62f6e187ea0..d9b37039255 100644
--- a/nixos/modules/services/logging/logstash.nix
+++ b/nixos/modules/services/logging/logstash.nix
@@ -77,7 +77,7 @@ in
 
       inputConfig = mkOption {
         type = types.lines;
-        default = ''stdin { type => "example" }'';
+        default = ''generator { }'';
         description = "Logstash input configuration.";
         example = ''
           # Read from journal
@@ -90,7 +90,7 @@ in
 
       filterConfig = mkOption {
         type = types.lines;
-        default = ''noop {}'';
+        default = "";
         description = "logstash filter configuration.";
         example = ''
           if [type] == "syslog" {
@@ -108,11 +108,11 @@ in
 
       outputConfig = mkOption {
         type = types.lines;
-        default = ''stdout { debug => true debug_format => "json"}'';
+        default = ''stdout { codec => rubydebug }'';
         description = "Logstash output configuration.";
         example = ''
-          redis { host => "localhost" data_type => "list" key => "logstash" codec => json }
-          elasticsearch { embedded => true }
+          redis { host => ["localhost"] data_type => "list" key => "logstash" codec => json }
+          elasticsearch { }
         '';
       };