summaryrefslogtreecommitdiff
path: root/tests/testsuites/elasticsearch-basic.conf
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testsuites/elasticsearch-basic.conf')
-rw-r--r--tests/testsuites/elasticsearch-basic.conf9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/testsuites/elasticsearch-basic.conf b/tests/testsuites/elasticsearch-basic.conf
new file mode 100644
index 0000000..627bacc
--- /dev/null
+++ b/tests/testsuites/elasticsearch-basic.conf
@@ -0,0 +1,9 @@
+$IncludeConfig diag-common.conf
+
+template(name="tpl" type="string"
+ string="{\"msgnum\":\"%msg:F,58:2%\"}")
+
+module(load="../plugins/omelasticsearch/.libs/omelasticsearch")
+:msg, contains, "msgnum:" action(type="omelasticsearch"
+ template="tpl"
+ searchIndex="rsyslog_testbench")