opensearch-project / opensearch-project/data-prepper
[BUG] fluent-bit docker can't connect to data-prepper http 404
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 374
- Forks
- 354
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 8
Description
Describe the bug
VM1 192.168.12.12:2021: Docker:
data-prepper running
VM2: Fluent-bit docker:
/fluent-bit/bin/fluent-bit -i cpu -t cpu -o http -p Host=192.168.12.12 -p Port=2021 -m * -p URI /data-prepper/log/ingest -p Format json
- See error
in fluent-bit log:
[2022/10/17 09:52:13] [ warn] [engine] failed to flush chunk '1-1666000332.243777239.flb', retry in 9 seconds: task_id=5, input=cpu.0 > output=http.0 (out_id=0)
[2022/10/17 09:52:14] [error] [output:http:http.0] 192.168.12.12:2021, HTTP status=404
Status: 404
Description: Not Found
And,
What is the URI in this example?
https://github.com/opensearch-project/data-prepper/blob/main/docs/log_analytics.md
URI /log/ingest
Format json
Data-prepper works with 'Host = localhost' , not working from remote.
Telnet able to connect to ip:2021
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Fluent Bit command in the issue and compare its URI with the linked docs/log_analytics.md example. Investigate why the remote request to port 2021 returns HTTP 404 while localhost works. Done means the documented or corrected URI allows the remote Fluent Bit request to be accepted without a 404.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, java
- Domain
- api, backend, observability
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100