Skip to content

This program reads the log file and sends each entry to a mqtt broker.

Notifications You must be signed in to change notification settings

modship/logs-publisher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logs publisher

This program reads the log file and sends each entry to a mqtt broker.

How to use

Run cli with args

Command Args

  • -f : Path of the log file
  • -u : Broker MQTT Url
  • -t : MQTT topic target
logs-publisher -u tcp://127.0.0.1:1883 -f "/Users/me/MyLogFile.log" -t mytopic/logs

TODO

  • Retrieve args
  • Connect to MQTT
  • Read log file
  • Send log to MQTT
  • Log filtering

About

This program reads the log file and sends each entry to a mqtt broker.

Resources

Stars

Watchers

Forks

Packages

No packages published