Skip to content
How to Use ElastAlert with WeChat: Python, Shell, and Java Plugins
Operations 4 min read

How to Use ElastAlert with WeChat: Python, Shell, and Java Plugins

This guide explains why WeChat is popular in China and introduces three ElastAlert plugins (shell, Python, Java) that send alerts via WeChat, compares alert channels, outlines prerequisites, and provides step‑by‑step installation and usage instructions with code examples and screenshots.

Java Backend Technology
Java Backend Technology
Java Backend Technology

Introduction

Because WeChat has a high usage rate in China, three ElastAlert plugins (shell, Python, Java) were developed to send alerts via WeChat.

Alert methods supported by ElastAlert

Command

Email

JIRA

OpsGenie

SNS

HipChat

Slack

Telegram

Debug

Stomp

Email is free and traceable, but reading is not timely and inconvenient on most devices. Command‑based SMS is costly, limited, and may lose messages when the line is down.

For a detailed analysis see “Why use WeChat Enterprise/Team accounts”.

Link: https://github.com/anjia0532/weixin-qiye-alert#%E4%B8%BA%E4%BB%80%E4%B9%88%E4%BD%BF%E7%94%A8%E5%BE%AE%E4%BF%A1%E4%BC%81%E4%B8%9A%E5%8F%B7%E5%9B%A2%E9%98%9F%E5%8F%B7

ElastAlert Python plugin

Prerequisites

Elasticsearch 5.2.0

ElastAlert 0.1.8

Steps

Installation and Email alert usage are described in another article “ElastAlert based on Elasticsearch monitoring alerts”.

Link: https://github.com/anjia0532/weixin-qiye-alert#%E4%B8%BA%E4%BB%80%E4%B9%88%E4%BD%BF%E7%94%A8%E5%BE%AE%E4%BF%A1%E4%BC%81%E4%B8%9A%E5%8F%B7%E5%9B%A2%E9%98%9F%E5%8F%B7

Images illustrating the plugin:

Partial code reference: “Python and shell sending messages via WeChat Enterprise”.

Link: https://www.cnblogs.com/caoguo/p/5668653.html

ElastAlert Command Java version

Prerequisites

Apply for a WeChat Enterprise account

Install Git

Java 1.8+

Maven

Steps

See the project repository:

https://github.com/anjia0532/weixin-qiye-alert

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

JavaPythonalertingWeChatElastAlert
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.