Comments (2)
Hey @LucasHantz, sorry for the delayed response.
FireLens configures port Fluentd/Bit to listen for Fluent forward messages over tcp port 24224. Raw JSON over TCP won't work; the Fluent forward protocol is different. There is a spec for the fluent forward protocol, but it's not something you'd want to implement yourself. There are libraries in several languages for writing code that talks to Fluentd/Bit using this protocol. For example: https://github.com/fluent/fluent-logger-golang
However, that is probably not the most convenient way to do what you want. If you app is already emitting JSON over TCP, just change the port and use the Fluent Bit TCP input plugin: https://docs.fluentbit.io/manual/input/tcp
Or if you use Fluentd: https://docs.fluentd.org/input/tcp
In Fargate, you unfortunately can not pull a custom config file from S3 (we're working on that), you must embed it the fluentd/bit container image. The FireLens documentation briefly discusses this: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_firelens.html
Let me know if you need more help!
from amazon-ecs-firelens-examples.
I've managed to push the content with the TCP input as you suggested.
Thank you very much for your support!
from amazon-ecs-firelens-examples.
Related Issues (20)
- Aws Ecs Firelens to send the log to opensearch with custom filed
- Is there a way i can send the logs of my service to otel collector which is also a seperate service using the fluent forward protocol?(doubt)
- Metrics examples: remove need for metric filter by making FLB invoke a script that outputs EMF
- custom-fluent-bit-with-config Dockerfile contains unneeded file
- Is it possible to define custom input tag for fluentbit configs? HOT 4
- parse ecs nginx logs with fluentbit HOT 6
- Feature Request: add Fluentbit Splunk Example HOT 3
- [Question] [Help] asctime not recognized as time field in Kibana HOT 2
- Feature Request: add Kinesis Data Streams Example HOT 4
- Feature Request: syslog example
- Issue with FARGATE 1.4.0 HOT 3
- OpenSearch Domain not found
- space after - in health check script fails the health check HOT 1
- Provide examples of using log key values in confs and task definitions HOT 1
- Log driver awslogs disallows options: log_key
- FireLens health check recommendation
- Firelens Multiple Output based on regex
- Any of containers log not shipping to destination
- Support of multiple headers in FireLens task definition
- Adding Dynatrace FluentBit example HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amazon-ecs-firelens-examples.