> For the complete documentation index, see [llms.txt](https://feiyu563.gitbook.io/prometheusalert/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://feiyu563.gitbook.io/prometheusalert/system/system-graylog.md).

# graylog接入配置

首先使用管理员或者具有告警配置权限的帐号登录进Graylog日志系统后台，打开Graylog管理页面并进入Alerts配置。

![graylog1](/files/86zzuehQV1dCrKc4ilfY)

点击`Add new notification`创建新的告警通道,选择如下图配置:

![graylog2](/files/K92ktbk441LLXBVGays8)

在弹出的窗口中填入名称和对应的PrometheusAlert的接口地址（接口地址可以去PrometheusAlert的自定义模板页面获取）即可(graylog各版本消息有区别，默认PrometheusAlert集成了graylog2和graylog3的消息模版，其他版本的模版需要自行定义):

参考地址：`http://[prometheus-alert-center]:8080/prometheusalert?type=dd&tpl=graylog3-dd&ddurl=钉钉机器人地址&at=18888888888`

![graylog3](/files/EnFMfc5rx1l5PuRKRYAK)

PrometheusAlert的自定义模板页面

![graylog3](/files/aGj2i848sfCAsV0nJQKc)

配置完成后,点击`Test`测试下是否能够正常接收告警消息即可

最终告警效果:

![graylog4](/files/WuHNEN7gZOPhymSZkjvi)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://feiyu563.gitbook.io/prometheusalert/system/system-graylog.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
