Open ibrahimjelliti opened 11 months ago
[INPUT] Name elasticsearch
Elasticsearch is not an input, its an output:
[OUTPUT]
Name elasticsearch
https://docs.fluentbit.io/manual/pipeline/outputs/elasticsearch
Hi @PettitWesley,
I am referring to this page https://docs.fluentbit.io/manual/pipeline/inputs/elasticsearch.
nevertheless, I was looking at the C code of the in_elasticsearch, I think this is related to the logging of the _Bulk API while I am looking to forward opensearch logs found at /usr/share/opensearch/logs
inside the pod.
is there a way to have fluentbit tail a json file that is inside a pod?
@ibrahimjelliti Sorry, I didn't realize there was an input for elasticsearch too. It looks like that was added in 2.x, which is not supported in this distro yet. Please post a note here to request 2.x support in AWS distro: https://github.com/aws/aws-for-fluent-bit/issues/494
forward opensearch logs found at /usr/share/opensearch/logs inside the pod. is there a way to have fluentbit tail a json file that is inside a pod?
Yes! Configure a tail input to read log files: https://docs.fluentbit.io/manual/pipeline/inputs/tail
And make sure that Fluent Bit has access to the location on the filesystem. If the logs are created in another container, make sure to set up a volume mount to Fluent Bit.
Describe the question/issue
I am running AWS for Fluent Bit on EKS to forward logs to cloudwatch, I am trying to ship logs of Elasticsearch running on eks to cloudwatch. but I am getting an error
Configuration
Fluent Bit Log Output
Fluent Bit Version Info
public.ecr.aws/aws-observability/aws-for-fluent-bit:stable -->
Cluster Details
Application Details
I am running Opensearch on EKS and having logs written in the OS log
Steps to reproduce the issue
use the Configuration section above in Fluentbit on eks,