From 93132d171784d0056b90919ffed7c4f2a51e5da5 Mon Sep 17 00:00:00 2001 From: Jaka Hudoklin Date: Sun, 6 Sep 2015 15:19:52 +0200 Subject: [PATCH] logstash service: fix tests --- nixos/tests/logstash.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/tests/logstash.nix b/nixos/tests/logstash.nix index 317ea063e17c..edece352cafe 100644 --- a/nixos/tests/logstash.nix +++ b/nixos/tests/logstash.nix @@ -19,8 +19,8 @@ import ./make-test.nix ({ pkgs, ...} : { exec { command => "echo dragons" interval => 1 type => "test" } ''; filterConfig = '' - if [type] == "test" { - grep { match => ["message", "flowers"] drop => true } + if [message] =~ /dragons/ { + drop {} } ''; outputConfig = ''