(no commit message) master
authorChristian Weiske <cweiske@cweiske.de>
Mon, 21 Oct 2013 13:32:40 +0000 (15:32 +0200)
committerwww-cweiske <www-cweiske@localhost.localdomain>
Mon, 21 Oct 2013 13:32:40 +0000 (15:32 +0200)
drop-on-tag.conf [new file with mode: 0644]

diff --git a/drop-on-tag.conf b/drop-on-tag.conf
new file mode 100644 (file)
index 0000000..56c13b3
--- /dev/null
@@ -0,0 +1,10 @@
+filter {\r
+  grok {\r
+    match => [ "message", "something" ]\r
+    add_tag => [ "dropme" ]\r
+    tag_on_failure => []\r
+  }\r
+  if "dropme" in [tags] {\r
+    drop {}\r
+  }\r
+}\r