When a Geneos user wants to get JSON format into Geneos, I suggest using Rest-Extractor plugin. Some user prefer to read JSON from a file, rather than accessing the JSON through http/https. In here, I have created examples by using both plugins, so that you can compare and and get a feel of the different.
I put the JSON file in /var/www/html, and started httpd in the Linux server.
[
{"MON":{"Host":"hkserver101.net","AlertID":"HK0101","Cmp":"instrument","Lvl":"I","Data":{"Usd":8088,"Max":85000,"Pct":12.231213,"Lmt":50.0},"Timestamp":"20201113.110008.333880"}},
{"MON":{"Host":"hkserver201.net","AlertID":"HK2020","Cmp":"price_1","Lvl":"I","Data":{"Usd":123,"Max":30000,"Pct":59.2123,"Lmt":50.0},"Timestamp":"20201113.120008.323072"}}
]
My output from both plugins are identical:
Extractor plugin:
Rest-Extractor plugin:
Comments
0 comments
Please sign in to leave a comment.