-
Notifications
You must be signed in to change notification settings - Fork 7
WIS logstash
After applying the needed Logstash configuration in the [configuration file](https://github.com/n0r1sk/smsgateway/wiki/Configuration server you can trigger the stats api to force the WIS server to send the events to the logstash server.
Through the following CURL call, the submission of the SMS-Gateway events to Logstash is triggerd.
curl -XPOST 'http://127.0.0.1:7777/smsgateway/api/stats/logstash' -H "Content-Type: application/json" -d '{"token": "yourconfiguredtokenhere"}'
A usual response will look like the following output.
{"all" : 83, "pro" : 83}
This means that 83 SMS events happened since the last transmission all`` and all of these events were transfered to the Logstash server
pro``` (processed). The system will know if it wasn't able to transfer the event to the Logstash server and it will stop at this point. At the next run it will start where it stops.
You an install a CRON job to run the CURL call periodically.
The following screenshot shows a typical day of our working SMS-Gateway.
This work is licensed under a Creative Commons Attribution 4.0 International License.