M .gitmodules => .gitmodules +3 -0
@@ 4,3 4,6 @@
[submodule "nginx/nginx-dav-ext-module"]
path = nginx/nginx-dav-ext-module
url = https://github.com/arut/nginx-dav-ext-module
+[submodule "tailon/src"]
+ path = tailon/src
+ url = https://github.com/gvalkov/tailon.git
M syslog-ng/README.md => syslog-ng/README.md +0 -3
@@ 25,6 25,3 @@ $conman run --detach --name syslog --restart always \
registry.intra.dominic-ricottone.com/syslog-ng:latest
```
-Should be used with `registry.intra.dominic-ricottone.com/loki`
-and `registry.intra.dominic-ricottone.com/promtail`.
-
M syslog-ng/syslog-ng.conf => syslog-ng/syslog-ng.conf +4 -5
@@ 1,17 1,16 @@
-@version: 4.1
+@version: 4.7
source src_inet {
network(transport("udp") port(514));
network(transport("tcp") port(601));
};
-destination dest_promtail {
- syslog("promtail" transport("tcp") port(601));
- file("/var/log/test.log");
+destination dest_file {
+ file("/var/log/received.log");
};
log {
source(src_inet);
- destination(dest_promtail);
+ destination(dest_file);
};
A tailon/Makefile => tailon/Makefile +16 -0
@@ 0,0 1,16 @@
+CONMAN=sudo docker
+
+REGISTRY=registry.intra.dominic-ricottone.com
+IMAGE=tailon
+TAG=latest
+
+src/frontend_bin.go:
+ cd src && make frontend_bin.go
+
+image: src/frontend_bin.go
+ cd src && $(CONMAN) buildx build --push --progress=plain \
+ --platform linux/arm64,linux/amd64 \
+ --tag $(REGISTRY)/$(IMAGE):$(TAG) \
+ .
+
+.PHONY: image
A tailon/README.md => tailon/README.md +28 -0
@@ 0,0 1,28 @@
+# tailon
+
+
+## Build and Deploy
+
+```
+make image
+```
+
+
+### Tags
+
+ + `latest`
+
+----
+
+## Use
+
+Can be used with any container manager toolchain.
+
+Try:
+
+```
+$conman run --detach --name tailon --restart always \
+ --mount type=bind,src=$logfile,dst=/var/log/tailon.log \
+ registry.intra.dominic-ricottone.com/tailon:latest
+```
+
A tailon/src => tailon/src +1 -0
@@ 0,0 1,1 @@
+Subproject commit 51b2b779ac1aec154c1288ca54beca39bf1d7d11