From dbff03abe8455b69035927784816bfd8c9a8c1e5 Mon Sep 17 00:00:00 2001 From: urvoy Date: Thu, 29 Jul 2021 16:39:32 +0200 Subject: [PATCH] add readme --- readme.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 readme.md diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..a6209ac --- /dev/null +++ b/readme.md @@ -0,0 +1,27 @@ +# 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 + +- [x] Retrieve args +- [x] Connect to MQTT +- [x] Read log file +- [x] Send log to MQTT +- [ ] Log filtering