One FILTER to one OUTPUT and another FILTER to another output #6630
vijaynauti
started this conversation in
General
Replies: 1 comment 11 replies
-
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All
I have configured Fluent-bit for my application deployed on ECS Fargate where i am sending my logs to CloudWatch log and OpenSearch, I have some ECS Metadata attached with my logs like container name and container_ID, these details i need to pass only with OpenSearch but not with CloudWatch log.
Is there is any way to customize this.
Below is my custom configuration.
[INPUT]
Name forward
unix_path /var/run/fluent.sock
Tag test_tag_cw
Mem_Buf_Limit 100MB
[INPUT]
Name forward
unix_path /var/run/fluent.sock
Tag test_tag_es
Mem_Buf_Limit 100MB
[FILTER]
Name record_modifier
Match test_tag_cw
Record app-version applog
Remove_key container_id
[FILTER]
Name record_modifier
Match test_tag_es
Record app-version applog
Remove_key container_name
[OUTPUT]
Name cloudwatch
Match test_tag_cw
region us-east-1
log_group_name fluent-bit-cloudwatch-v1
log_stream_prefix From-fluent-bit-
auto_create_group true
[OUTPUT]
Name OpenSearch
Match test_tag_es
Host ${my_DNS}
Port 443
Index search-logging-v1
Type _doc
AWS_Auth On
AWS_Region us-east-1
tls On
Suppress_Type_Name On
retry_limit 3
Beta Was this translation helpful? Give feedback.
All reactions