Skip to content

Commit

Permalink
fix logging (#1455)
Browse files Browse the repository at this point in the history
- **del timestamp field in mongo logs**
- **add docker to vector img**
  • Loading branch information
goastler authored Oct 15, 2024
1 parent 88d379a commit ee9b406
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
17 changes: 16 additions & 1 deletion docker/images/vector/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,23 @@

FROM timberio/vector:latest-debian

RUN apt-get update && apt-get install -y --no-install-recommends \
# Add Docker's official GPG key:
RUN apt-get update \
&& apt-get install -y ca-certificates curl \
&& install -m 0755 -d /etc/apt/keyrings \
&& curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc \
&& chmod a+r /etc/apt/keyrings/docker.asc \
&& echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
gettext \
docker-ce \
docker-ce-cli \
containerd.io \
docker-buildx-plugin \
docker-compose-plugin \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

Expand Down
1 change: 1 addition & 0 deletions docker/images/vector/vector.toml
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ source = '''
.host="$OO_HOST"
del(.t)
del(.id)
del(._timestamp)
'''

# send to openobserve
Expand Down

0 comments on commit ee9b406

Please sign in to comment.