andrewfraley / arris_cable_modem_stats

Retrieves stats from Arris cable modems and sends to InfluxDB
53 stars 34 forks source link

Support for Splunk #38

Closed michaelcolson closed 2 years ago

michaelcolson commented 2 years ago

Would it be possible to write to a flat file or send to Splunk HTTP Event Collector (HEC) directly? It looks like the way you've architected the app that a new arris_stats_splunk.py destination could be created.

andrewfraley commented 2 years ago

Hi @michaelcolson, yes you would just add a new output function and then call it at the end of main() here.

andrewfraley commented 2 years ago

Hi @michaelcolson, I went ahead and added support. Please see the Splunk section of the readme. I made no attempt to organize the data specifically for Splunk and I'm just sending it as json data to the HTTP Endpoint Collector. Let me know if you think the data needs a different structure, but I can see everything there in my test instance, I just don't have any experience creating Splunk dashboards.