info_tfgrid/collections/developers/internals/zos/manual/zlogs/readme.md

12 lines
872 B
Markdown
Raw Normal View History

2024-04-29 17:49:02 +00:00
# `zlogs` type
2024-08-06 15:33:59 +00:00
Zlogs is a utility workload that allows you to stream `zero_vm` logs to a remote location.
2024-04-29 17:49:02 +00:00
2024-08-06 15:33:59 +00:00
The `zlogs` workload needs to know what `zero_vm` to stream logs of and also the `target` location to stream the logs to. `zlogs` uses internally the [`tailstream`](https://github.com/threefoldtech/tailstream) so it supports any streaming url that is supported by this utility.
2024-04-29 17:49:02 +00:00
2024-08-06 15:33:59 +00:00
`zlogs` workload runs inside the same private network as the `zero_vm` instance. Which means zlogs can stream logs to other `zero_vms` that is running inside the same private network (possibly on different nodes).
2024-04-29 17:49:02 +00:00
For example, you can run [`logagg`](https://github.com/threefoldtech/logagg) which is a web-socket server that can work with `tailstream` web-socket protocol.
Check `zlogs` configuration [here](https://github.com/threefoldtech/zos/blob/main/pkg/gridtypes/zos/zlogs.go)