openconfig / gnmic

gNMIc is a gNMI CLI client and collector
https://gnmic.openconfig.net
Apache License 2.0
170 stars 55 forks source link

Log Fail Attempt to Influxdb #499

Closed minh-arrcus closed 1 month ago

minh-arrcus commented 1 month ago

Hi Team,

Wondering if there is an option to stream log messages when the target is down/unavailable?

2024/08/01 12:15:43.881132 [gnmic] failed to initialize target "10.0.0.201": 10.0.0.201:6030: context deadline exceeded
2024/08/01 12:15:43.881179 [gnmic] retrying target "10.0.0.201" in 10s

This is for us to detect the liveness of targets.

Thanks!

Regards, Minh

karimra commented 1 month ago

Not sure this is in the scope of gNMIc. There are solutions out there to get your logs out from a file or a container stderr and then into a DB of some sort. Check the EFK (ElasticSearch, Fluentd, Kibana) stack for example.