This commit is contained in:
Lorenzo Carbonell 2023-05-18 05:24:32 +02:00
parent e3e360f1c1
commit e713a2213b
3 changed files with 56 additions and 0 deletions

12
vector/README.md Normal file
View File

@ -0,0 +1,12 @@
# Instalación
[Flame](https://github.com/pawelmalak/flame) es un software para crear una "página de inicio" con enlaces a nuestras aplicaciones web y sitios web favoritos.
```
git clone https://github.com/atareao/self-hosted.git
cd self-hosted/flame
cp sample.vector.toml vector.toml
```
Además recuerda cambiar el usuario y la contraseña.

19
vector/docker-compose.yml Normal file
View File

@ -0,0 +1,19 @@
version: "3.7"
services:
vector:
image: timberio/vector:latest-alpine
container_name: vector
restart: unless-stopped
init: true
ports:
- 8686:8686
volumes:
- ./vector.toml:/etc/vector/vector.toml:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- networklog
networks:
networklog:
external: true

25
vector/sample.vector.toml Normal file
View File

@ -0,0 +1,25 @@
[api]
enabled = true
address = "0.0.0.0:8686"
[sources.docker_logs]
type = "docker_logs"
# [sinks.console]
# inputs = ["docker_logs"]
# target = "stdout"
# type = "console"
# encoding.codec = "json"
[sinks.zo]
type = "http"
inputs = ["docker_logs"]
uri = "http://zincobserve:5080/api/default/logs/_json"
method = "post"
auth.strategy = "basic"
auth.user = "usuario"
auth.password = "contraseña"
compression = "gzip"
encoding.codec = "json"
encoding.timestamp_format = "rfc3339"
healthcheck.enabled = false