-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
urvoy
committed
Jul 29, 2021
1 parent
829217e
commit dbff03a
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |