mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-17 01:00:40 +01:00
Reverting existing tests, adding new test for overriding maxbytes
This commit is contained in:
parent
737e085eb2
commit
992233d65a
@ -350,6 +350,7 @@ if ENABLE_ELASTICSEARCH_TESTS
|
||||
TESTS += \
|
||||
es-basic.sh \
|
||||
es-basic-bulk.sh \
|
||||
es-maxbytes-bulk.sh \
|
||||
es-basic-errfile-empty.sh \
|
||||
es-basic-errfile-popul.sh \
|
||||
es-bulk-errfile-empty.sh \
|
||||
|
||||
13
tests/es-maxbytes-bulk.sh
Normal file
13
tests/es-maxbytes-bulk.sh
Normal file
@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
# This file is part of the rsyslog project, released under ASL 2.0
|
||||
echo ===============================================================================
|
||||
echo \[es-maxbytes-bulk\]: test for elasticsearch functionality with maxbytes bulking
|
||||
. $srcdir/diag.sh init
|
||||
. $srcdir/diag.sh es-init
|
||||
. $srcdir/diag.sh startup es-maxbytes-bulk.conf
|
||||
. $srcdir/diag.sh injectmsg 0 10000
|
||||
. $srcdir/diag.sh shutdown-when-empty
|
||||
. $srcdir/diag.sh wait-shutdown
|
||||
. $srcdir/diag.sh es-getdata 10000
|
||||
. $srcdir/diag.sh seq-check 0 9999
|
||||
. $srcdir/diag.sh exit
|
||||
@ -7,5 +7,4 @@ module(load="../plugins/omelasticsearch/.libs/omelasticsearch")
|
||||
:msg, contains, "msgnum:" action(type="omelasticsearch"
|
||||
template="tpl"
|
||||
searchIndex="rsyslog_testbench"
|
||||
bulkmode="on"
|
||||
maxbytes="1k")
|
||||
bulkmode="on")
|
||||
|
||||
@ -8,5 +8,4 @@ module(load="../plugins/omelasticsearch/.libs/omelasticsearch")
|
||||
template="tpl"
|
||||
searchIndex="rsyslog_testbench"
|
||||
bulkmode="on"
|
||||
maxbytes="1k"
|
||||
errorFile="./rsyslog.errorfile")
|
||||
|
||||
@ -19,7 +19,6 @@ ruleset(name="foo") {
|
||||
searchIndex="rsyslog_testbench"
|
||||
searchType="test-type"
|
||||
bulkmode="on"
|
||||
maxbytes="1k"
|
||||
errorFile="./rsyslog.errorfile")
|
||||
}
|
||||
|
||||
|
||||
@ -19,7 +19,6 @@ ruleset(name="foo") {
|
||||
searchIndex="rsyslog_testbench"
|
||||
searchType="test-type"
|
||||
bulkmode="on"
|
||||
maxbytes="1k"
|
||||
errorFile="./rsyslog.errorfile"
|
||||
interleaved="on")
|
||||
}
|
||||
|
||||
@ -19,7 +19,6 @@ ruleset(name="foo") {
|
||||
searchIndex="rsyslog_testbench"
|
||||
searchType="test-type"
|
||||
bulkmode="on"
|
||||
maxbytes="1k"
|
||||
errorFile="./rsyslog.errorfile"
|
||||
erroronly="on"
|
||||
interleaved="on")
|
||||
|
||||
@ -19,7 +19,6 @@ ruleset(name="foo") {
|
||||
searchIndex="rsyslog_testbench"
|
||||
searchType="test-type"
|
||||
bulkmode="on"
|
||||
maxbytes="1k"
|
||||
errorFile="./rsyslog.errorfile"
|
||||
erroronly="on")
|
||||
}
|
||||
|
||||
@ -12,5 +12,4 @@ module(load="../plugins/omelasticsearch/.libs/omelasticsearch")
|
||||
searchIndex="rsyslog_testbench"
|
||||
searchType="test-type"
|
||||
bulkmode="on"
|
||||
maxbytes="1k"
|
||||
errorFile="./rsyslog.errorfile")
|
||||
|
||||
11
tests/testsuites/es-maxbytes-bulk.conf
Normal file
11
tests/testsuites/es-maxbytes-bulk.conf
Normal file
@ -0,0 +1,11 @@
|
||||
$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"
|
||||
bulkmode="on"
|
||||
maxbytes="1k")
|
||||
Loading…
x
Reference in New Issue
Block a user