mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-20 13:10:43 +01:00
16 lines
556 B
Plaintext
16 lines
556 B
Plaintext
$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")
|