Rough support for nycmesh-tool watch logs. Some basic time (--since=15m) and NN (--nn=5712,115) filtering has been added.
Try it out:
make && ./bin/nycmesh-tool watch logs
GOOS= GOARCH= go build -ldflags='-X github.com/byxorna/nycmesh-tool/pkg/version.GitCommit=636b6281f2c28c7466e2bb087610e6ec205f8cc6 -X "github.com/byxorna/nycmesh-tool/pkg/version.BuildDate=Sun Feb 6 08:27:54 PM UTC 2022" -X "github.com/byxorna/nycmesh-tool/pkg/version.Release=v0.3.2-13-g636b628" -X "github.com/byxorna/nycmesh-tool/pkg/version.GitBranch=gabe/watch"' -o bin/nycmesh-tool github.com/byxorna/nycmesh-tool
2022/02/06 15:27:55 config file: /home/gabe/.nycmesh-tool.yaml
2022/02/06 15:27:55 binary release v0.3.2-13-g636b628, built Sun Feb 6 08:27:54 PM UTC 2022
2022/02/06 15:27:55 watching logs since 15m0s ago
2022-02-06T15:14:35-05:00 info nn:1616 `nycmesh-lbe-1616`, interface: eth0 has been connected.
2022-02-06T15:15:35-05:00 info nn:1616 `nycmesh-lbe-1616`, interface: eth0 has been disconnected.
2022-02-06T15:15:43-05:00 info nn:4761 `nycmesh-lbe-4761` connected back to UISP. Current FW is 8.7.1 and uptime is 1d 17h.
2022-02-06T15:16:35-05:00 info nn:1616 `nycmesh-lbe-1616`, interface: eth0 has been connected.
2022-02-06T15:17:36-05:00 info nn:1616 `nycmesh-lbe-1616`, interface: eth0 has been disconnected.
2022-02-06T15:18:05-05:00 error nn:4761 `nycmesh-lbe-4761` has been disconnected from UISP.
2022-02-06T15:18:23-05:00 warning nn:266 `nycmesh-266-omni` has been disconnected from UISP.
2022-02-06T15:19:44-05:00 info nn:7178 `nycmesh-7178-omni` connected back to UISP.
2022-02-06T15:20:31-05:00 info nn:4761 `nycmesh-lbe-4761` connected back to UISP. Current FW is 8.7.1 and uptime is 1d 17h.
2022-02-06T15:22:03-05:00 error nn:4761 `nycmesh-lbe-4761` has been disconnected from UISP.
2022-02-06T15:26:43-05:00 error nn:3121 `nycmesh-lbe-3121` has been disconnected from UISP.
Rough support for
nycmesh-tool watch logs
. Some basic time (--since=15m
) and NN (--nn=5712,115
) filtering has been added.Try it out: