/
githubmirror
/
rsyslog
Обзор
Документация
Войти
/
githubmirror
/
rsyslog
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tests/omawslogshlc-basic.sh
43 строки
1 KB
Chen Lu
omawslogshlc: add CloudWatch Logs HLC output module
08 июл 2026, 18:35
08 июл 2026, 18:35
abc26c3
Код
Авторство
О чём код?
#!/bin/bash # This file is part of the rsyslog project, released under ASL 2.0 # Test basic functionality of omawslogshlc: send a small number of messages # to CloudWatch Logs via the HLC endpoint. The oracle is that rsyslog # processes all injected messages through the local omfile action and emits no # CloudWatch HTTP/authentication diagnostics while the HLC action runs. . ${srcdir:=.}/diag.sh init . ${srcdir:=.}/omawslogshlc-env.sh require_plugin "omawslogshlc" export NUMMESSAGES=5 omawslogshlc_require_env generate_conf add_conf ' global(processInternalMessages="on" internalmsg.severity="info") module(load="../plugins/omawslogshlc/.libs/omawslogshlc") local4.* action( type="omawslogshlc" region="'$AWS_CWL_REGION'" bearer_token="'$AWS_CWL_BEARER_TOKEN'" log_group="'$AWS_CWL_LOG_GROUP'" log_stream="'$AWS_CWL_LOG_STREAM'" action.resumeInterval="1" action.resumeRetryCount="2" ) *.* action(type="omfile" file="'$RSYSLOG_OUT_LOG'") ' startup injectmsg 0 $NUMMESSAGES shutdown_when_empty wait_shutdown seq_check 0 $((NUMMESSAGES - 1)) check_not_present "omawslogshlc: HTTP" exit_test