Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
365 views
in Technique[技术] by (71.8m points)

Fluent Bit output to Splunk on Windows

I tried following command to send logs to Splunk

fluent-bit -i dummy -o splunk -p host=10.16.0.41 -p port=8088 -p tls=off -p tls.verify=off -p splunk_token=my_splunk_token_value -m '*'

It works with Mac OS but not working when it runs on Windows. On Windows, it gives following error

[error] [io] connection #680 failed to: 10.16.0.41:8088
[debug] [upstream] connection #680 failed to 10.16.0.41:8088
[debug] [retry] new retry created for task_id=0 attempts=1
[ warn] [engine] failed to flush chunk '7624-1609745347.351439100.flb', retry in 7 seconds: task_id=0, input=dummy.0 > output=splunk.0

I can telnet to that port in Windows machine as well

telnet 10.16.0.41 8088

I am using td-agent-bit-1.6.9-win64.zip as in the documentation


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

This is an issue with fluent-bit versions 1.6.8 & 1.6.9 Windows executables. Issue is described in GitHub issues as well. Fix has been added in 1.6.10 version.

As I got to know, issue was "Windows socket interface don't handle 'errno' properly"


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...