logzio / logzio/docker-logging-plugin

`logzio-tag` option has no effect

Open
#39 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
7
Forks
3
PR merge metrics
No merged PRs in 30d

Description

I've faced with the issue that `logzio-tag` option has no effect.

```bash
docker run --log-driver=logzio/logzio-logging-plugin \
--log-opt logzio-token=TOKEN\
--log-opt logzio-url=URL \
--log-opt logzio-dir-path=./docker_logs \
--log-opt logzio-tag="{{.ImageName}}" \
--name testmongo \
-d \
mongo
```

The short container ID is still present in the dashboard. I've tested different combination from https://docs.docker.com/config/containers/logging/log_tags/

```bash
% docker -v
Docker version 20.10.24, build 297e128

Docker Desktop 4.18.0 (104112)

macOS 13.3.1 on M1
```

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with the Docker command and version details in the report, then compare the plugin's handling of logzio-tag with Docker's logging-driver tag documentation. Done means a configured tag such as {{.ImageName}} appears in the Logz.io dashboard instead of the short container ID.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, go
Domain
devops, observability-sre
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.