I wish to read some important business metrics from various apps and push the logs to graylog periodically. Basically, i would read a metric (NPS) from service called ‘AskNicely’ and get a simple number like ‘24’, and then push message to graylog with that value in it.
I wish to show the number ‘24’ (the number from the latest graylog message) in one of my dashboards.
Is this functionality supported, or is there a plugin that can help me with that.
Unfortunately there’s no comprehensive plugin development documentation but you can take a look at the Map Widget plugin which provides a custom widget via plugin:
We do something similar without a custom plugin.
On a daily basis (cronjob) a system gathers all key company metrics and posts a message to Graylog.
Each key metric is a field in the message.
To display this on a dashboard, choose the stat | maximum value, and make sure the time range does not exceed the message reporting frequency (in our case 1d time range works perfect)
jtkarvo is right, the field type needs to be changed.
What system are you using to log the data? it could be set when logging, or can be changed in graylog using custom field mapping.