Logic Machine Forum
Feeding all log data to external service - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: General (https://forum.logicmachine.net/forumdisplay.php?fid=2)
+--- Thread: Feeding all log data to external service (/showthread.php?tid=1326)



Feeding all log data to external service - fiLLLip - 01.04.2018

I am wondering about the ability to export all value updates (with a certain tag) to e.g. a InfluxDB or Elastic instance for visualization with Grafana or Kibana. Is this possible with an internal component or do I need to script it? I have checked out the internal trend log, but it does not quite fit my data hoarding needs. Smile


RE: Feeding all log data to external service - admin - 03.04.2018

See this post for a basic example of a script that listen to all bus traffic:
https://forum.logicmachine.net/showthread.php?tid=273&pid=1269#pid1269

You can change grp.all to grp.tag('sometag') if you need only specific objects. For external connectors look for pure Lua libraries which in most cases can be used directly in LM without any modifications.


RE: Feeding all log data to external service - fiLLLip - 12.04.2018

I ended up doing a event based script and trigger on "log"-tagged items. This script then does a http post to Elastic. Works quite well Smile

   


RE: Feeding all log data to external service - JMM - 12.04.2018

Hi FiLLLip,

Do you have any way of sharing your script Rolleyes 

BR
JM


RE: Feeding all log data to external service - mischa - 10.07.2018

Also interested fiLLLip

Thanks,

Mischa