summaryrefslogtreecommitdiff
path: root/tests/testsuites/elasticsearch-basic-errorfile-populated.conf
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2014-09-26 23:40:39 +0200
committerMichael Biebl <biebl@debian.org>2014-09-26 23:40:39 +0200
commit60e92c23c214437f29dd66ba02ed4df9b013c570 (patch)
treebd7f452e179be87dd3521fcf9f97870031284042 /tests/testsuites/elasticsearch-basic-errorfile-populated.conf
parent3ea299a7d2a9ccb9594039bde4838e10526d6def (diff)
parent7bfd178d59a2c706d46092d745b54c61403cb44a (diff)
downloadrsyslog-60e92c23c214437f29dd66ba02ed4df9b013c570.tar.gz
Merge tag 'upstream/8.4.1'
Upstream version 8.4.1
Diffstat (limited to 'tests/testsuites/elasticsearch-basic-errorfile-populated.conf')
-rw-r--r--tests/testsuites/elasticsearch-basic-errorfile-populated.conf15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/testsuites/elasticsearch-basic-errorfile-populated.conf b/tests/testsuites/elasticsearch-basic-errorfile-populated.conf
new file mode 100644
index 0000000..d13b712
--- /dev/null
+++ b/tests/testsuites/elasticsearch-basic-errorfile-populated.conf
@@ -0,0 +1,15 @@
+$IncludeConfig diag-common.conf
+
+# Note: we must mess up with the template, because we can not
+# instruct ES to put further constraints on the data type and
+# values. So we require integer and make sure it is none.
+template(name="tpl" type="string"
+ string="{\"msgnum\":\"x%msg:F,58:2%\"}")
+
+module(load="../plugins/omelasticsearch/.libs/omelasticsearch")
+:msg, contains, "msgnum:" action(type="omelasticsearch"
+ template="tpl"
+ searchIndex="rsyslog_testbench"
+ searchType="test-type"
+ bulkmode="off"
+ errorFile="./rsyslog.errorfile")