Elasalert2のエラーに関して

お世話になります
elasrticsearch と kibana を使用して、異常なイベントについて管理者にメールを送信できるようにしたいと考えています。
この目的で elastalert2 を使用していますが、フィルターがエラーになっています。
この問題に多くの時間を費やしましたが、解決できませんでした。
どうか思い当たる事や解決法に関するノウハウがございましたらご教示いただけますと幸いです
よろしくお願いいたします

私のelastalertコマンドと結果は次のとおりです。

elastalert-test-rule --config elastalert2/config.yaml examples/rules/example_frequency.yaml --alert

##########################

##########################
Error running your filter:
TypeError("Elasticsearch.search() got multiple values for argument 'body'")

1 rules loaded
INFO:apscheduler.scheduler:Adding job tentatively -- it will be properly scheduled when the scheduler starts
INFO:elastalert:Queried rule Example frequency rule from 2023-03-29 23:21 UTC to 2023-03-29 23:36UTC: 0 / 0 hits
INFO:elastalert:Queried rule Example frequency rule from 2023-03-29 23:36 UTC to 2023-03-29 23:51UTC: 0 / 0 hits
INFO:elastalert:Queried rule Example frequency rule from 2023-03-29 23:51 UTC to 2023-03-30 00:06UTC: 0 / 0 hits
INFO:elastalert:Queried rule Example frequency rule from 2023-03-30 00:06 UTC to 2023-03-30 00:21UTC: 0 / 0 hits
INFO:elastalert:Queried rule Example frequency rule from 2023-03-30 00:21 UTC to 2023-03-30 00:22UTC: 0 / 0 hits

Would have written the following documents to writeback index (default is elastalert_status):

elastalert_status - {'rule_name': 'Example frequency rule', 'endtime': datetime.datetime(2023, 3,30, 0, 22, 6, 480746, tzinfo=tzutc()), 'starttime': datetime.datetime(2023, 3, 29, 23, 21, 30, 480746,
tzinfo=tzutc()), 'matches': 0, 'hits': 0, '@timestamp': datetime.datetime(2023, 3, 30, 0,22, 6, 548239, tzinfo=tzutc()), 'time_taken': 0.03283810615539551}

##########################

私の elastalert ルール ファイルは次のとおりです。

name: Example frequency rule
type: frequency
index: winlogbeat-7.6.2-*
num_events: 1
timeframe:
hours: 1
filter:

term:
hostname: ".xxx.xxx.co.jp"
alert:
"email"
email:
"xxx.xxx@xxxxxxxxxx.co.jp"
smtp_host: "xxxxxxmail.jp"
smtp_port: 25
smtp_ssl: false
from_addr: "xxxxxxxxx@xxxx.xxxxx.co.jp"
alert_text_type: alert_text_only

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.