I just revisited the Graylog ↔ Icigna2 topic and wanted to share my results with the community.
Icinga2 to Graylog
GelfWriter
Loging Icinga 2 data to Graylog works great with the GelfWriter .
rsyslog
Sending device logs of Icinga2 cluster nodes with rsyslog is easy.
Graylog to Icinga2
Push
graylog-plugin-icinga
Icinga Plugin for Graylog from GitHub - Icinga/graylog-plugin-icinga: An output plugin for integrating Icinga with Graylog. looks dead (last commit 7 years ago) and crashes Graylog 6.2.1
This makes me sad as I would very much prefer this approach!
Pull
check-graylog2-stream
check-graylog2-stream as officially linked by Icinga Integrations - Extend with Grafana & Many More looks dead (last commit 9 years ago) and didn’t work with Graylog 6.2.1 (or I’m to stupid to set it up - no verbose and debug arguments)
I got no further then:
- UNKNOWN: Got wrong return code from Graylog2 API, please check all command line parameters
- UNKNOWN: Can not connect to Graylog2 API
graylog-alerts-to-icinga
graylog-alerts-to-icinga from GitHub - sowoi/graylog-alerts-to-icinga: Monitor graylog alerts with icinga2 looks alive-ish (last commit 2 years ago) and I got it to work after adding a port argument.
Icinga Web 2 Graylog Module
Missing!
It would be great if the host tab would have a logs widget like LibreNMS has on the device overview page.
A direct link into Graylog with a preconfigured search would also be very nice and easy to implement as the URLs look like this https://graylog.example.com/search?q=source%3Aictmirrorlp02.example.com&rangetype=relative&from=300
If you have any insights or know about plugins I missed, I would like to read your reply.