This gist outlines a logsender that can be used as a template to send logs to QRYN. This may be used to manipulate logs or create certain types of logs. In the example we assert 2 log types as an example:
A JSON object that asserts some random values on each message.
A Metric value asserted under the {type:cpu} label.
Other log formats are also possible, however were not included in this simple template. Logfmt, String and the Labels/Entries format for insertion are examples of other log types.
Install node (v14+) and import the index.js file into a folder.
node index.js
to start.