Skip to content

Commit

Permalink
add readme
Browse files Browse the repository at this point in the history
  • Loading branch information
urvoy committed Jul 29, 2021
1 parent 829217e commit dbff03a
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions readme.md
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

0 comments on commit dbff03a

Please sign in to comment.