Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standard input cannot be recorded to the log file #9770

Open
yanzhang920817 opened this issue Dec 26, 2024 · 0 comments
Open

Standard input cannot be recorded to the log file #9770

yanzhang920817 opened this issue Dec 26, 2024 · 0 comments

Comments

@yanzhang920817
Copy link

yanzhang920817 commented Dec 26, 2024

I compiled version 3.2.3 of fluent-bit and configured fluent-bit.conf, but the standard input cannot be recorded in the log file.test.log is empty.

./fluent-bit --version
Fluent Bit v3.2.3
Git commit:
[guoyanzhang@CoRobotServer bin]$ cat fluent-bit.conf
[SERVICE]
    Flush         1
    Log_Level     debug
    Daemon        off

[INPUT]
    Name          stdin
    Tag           app.logs

[OUTPUT]
    Name          file
    Match         *
    Path          /home/guoyanzhang/fluentBit/fluent-bit-3.2.3/install/bin/test.log
[guoyanzhang@CoRobotServer bin]$ echo "aaaaa" | ./fluent-bit -c ./fluent-bit.conf
Fluent Bit v3.2.3
* Copyright (C) 2015-2024 The Fluent Bit Authors
* Fluent Bit is a CNCF sub-project under the umbrella of Fluentd
* https://fluentbit.io

______ _                  _    ______ _ _           _____  _____
|  ___| |                | |   | ___ (_) |         |____ |/ __  \
| |_  | |_   _  ___ _ __ | |_  | |_/ /_| |_  __   __   / /`' / /'
|  _| | | | | |/ _ \ '_ \| __| | ___ \ | __| \ \ / /   \ \  / /
| |   | | |_| |  __/ | | | |_  | |_/ / | |_   \ V /.___/ /./ /___
\_|   |_|\__,_|\___|_| |_|\__| \____/|_|\__|   \_/ \____(_)_____/


[2024/12/26 21:38:29] [ info] Configuration:
[2024/12/26 21:38:29] [ info]  flush time     | 1.000000 seconds
[2024/12/26 21:38:29] [ info]  grace          | 5 seconds
[2024/12/26 21:38:29] [ info]  daemon         | 0
[2024/12/26 21:38:29] [ info] ___________
[2024/12/26 21:38:29] [ info]  inputs:
[2024/12/26 21:38:29] [ info]      stdin
[2024/12/26 21:38:29] [ info] ___________
[2024/12/26 21:38:29] [ info]  filters:
[2024/12/26 21:38:29] [ info] ___________
[2024/12/26 21:38:29] [ info]  outputs:
[2024/12/26 21:38:29] [ info]      file.0
[2024/12/26 21:38:29] [ info] ___________
[2024/12/26 21:38:29] [ info]  collectors:
[2024/12/26 21:38:29] [ info] [fluent bit] version=3.2.3, commit=, pid=265883
[2024/12/26 21:38:29] [debug] [engine] coroutine stack size: 24576 bytes (24.0K)
[2024/12/26 21:38:29] [ info] [storage] ver=1.5.2, type=memory, sync=normal, checksum=off, max_chunks_up=128
[2024/12/26 21:38:29] [ info] [simd    ] disabled
[2024/12/26 21:38:29] [ info] [cmetrics] version=0.9.9
[2024/12/26 21:38:29] [ info] [ctraces ] version=0.5.7
[2024/12/26 21:38:29] [ info] [input:stdin:stdin.0] initializing
[2024/12/26 21:38:29] [ info] [input:stdin:stdin.0] storage_strategy='memory' (memory only)
[2024/12/26 21:38:29] [debug] [stdin:stdin.0] created event channels: read=25 write=26
[2024/12/26 21:38:29] [debug] [input:stdin:stdin.0] buf_size=16000
[2024/12/26 21:38:29] [debug] [file:file.0] created event channels: read=28 write=29
[2024/12/26 21:38:29] [ info] [sp] stream processor started
[2024/12/26 21:38:29] [debug] [input:stdin:stdin.0] invalid JSON message, skipping
[2024/12/26 21:38:29] [ info] [output:file:file.0] worker #0 started
[2024/12/26 21:38:29] [ warn] [input:stdin:stdin.0] end of file (stdin closed by remote end)
[2024/12/26 21:38:29] [ warn] [engine] service will shutdown in max 5 seconds
[2024/12/26 21:38:29] [ info] [engine] service has stopped (0 pending tasks)
[2024/12/26 21:38:29] [ info] [output:file:file.0] thread worker #0 stopping...
[2024/12/26 21:38:29] [ info] [output:file:file.0] thread worker #0 stopped
[guoyanzhang@CoRobotServer bin]$ cat test.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant