fluent-bit icon indicating copy to clipboard operation
fluent-bit copied to clipboard

Systemd_filter not working

Open YueMiyuki opened this issue 1 year ago • 3 comments

Bug Report

Describe the bug

Systemd_filter is not working, docker logs are still included

To Reproduce

  • Start service with above config
{"log":"YOUR LOG MESSAGE HERE","stream":"stdout","time":"2018-06-11T14:37:30.681701731Z"}
  • Steps to reproduce the problem:

Expected behavior Docker should not be included in log

Screenshots

image

Your Environment

  • Version used: 2.1.1
  • Configuration:

[INPUT]
    Name   kmsg
    Tag    kernel
[INPUT]
    Name            systemd
    Tag             systemd
#    Exclude  _SYSTEMD_UNIT ^(docker|kubelet)\.service$
    Systemd_Filter    _SYSTEMD_UNIT=docker.service

[OUTPUT]
    name    http
    match   *
    tls     On
    host    in.logs.betterstack.com
    port    443
    uri     /fluentbit
    header  Authorization Bearer zFoVZYGiyh8wUYQPVfvNQeJR
    header  Content-Type application/msgpack
    format  msgpack
    retry_limit 5
  • Environment name and version (e.g. Kubernetes? What version?): Fedora Server 40
  • Server type and version:
  • Operating System and version: Fedora server 40
  • Filters and plugins:

Additional context I am trying not to include docker logs

YueMiyuki avatar May 08 '24 14:05 YueMiyuki

Can you confirm this still happens on the latest (3.0.3 currently)? 2.1.1 is no longer supported.

patrick-stephens avatar May 08 '24 15:05 patrick-stephens

Hi, 2.1.1 is the lastest I can get from dnf, see: https://packages.fedoraproject.org/pkgs/fluent-bit/fluent-bit/fedora-40.html

YueMiyuki avatar May 08 '24 23:05 YueMiyuki

I can't really comment on how Fedora is working there but we do build targets for compatible systems so you can use the Fluent Bit repos as well: https://docs.fluentbit.io/manual/installation/linux

patrick-stephens avatar May 09 '24 10:05 patrick-stephens

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days. Maintainers can add the exempt-stale label.

github-actions[bot] avatar Aug 17 '24 01:08 github-actions[bot]

This issue was closed because it has been stalled for 5 days with no activity.

github-actions[bot] avatar Aug 22 '24 01:08 github-actions[bot]