ref: 5afe7695f8c71bda069c2d8fd0e8cffc270d43b7
clients/shell/LogNow.sh
1 2 3 4 5 6 7 8
#! /bin/bash # curl \ -X POST\ --header "Content-Type: application/json"\ --header "X-SSL-Client-CN: something"\ -d '{"id_client":"test-cli","name":"test-log","value":"A log message"}'\ http://127.0.0.1:18081/metric