hi, im pretty new to graylog so im still in the early stages of learning how to get it to do what i want and my googlefu seems to be failing me
i have about 50 hosts that have been set up so far to send syslog messages to graylog and its been working flawlessly
now my primary goal at this stage is to show the 10 or so most frequently occurring messages (both overall as well as filtered per specific host)
when i was logging syslog to a mysql database, i was using this sql query to achieve exactly what i wanted (hopefully better explains my goal):
SELECT
Message,
COUNT(Message)
FROM
SystemEvents
GROUP BY
Message
ORDER BY COUNT(Message) DESC
LIMIT 20;
which would result in something along the lines of the following example:
Message | Count |
---|---|
Starting Proxmox VE replication runner… | 55 |
Finished Proxmox VE replication runner. | 55 |
dhcpd[3291595]: DHCPDISCOVER | 33 |
pam_unix(cron:session): session opened for user root(uid=0) by (uid=0) | 3 |
pvesr.service: Consumed 2.602s CPU time. | 1 |
is there a way to get the same results in a dashboard widget within graylog?
Currently im running
Graylog: 4.2 / Elasticsearch: 7.10.2