Closed adrijshikhar closed 2 months ago
Hi any update on this?
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days. Maintainers can add the exempt-stale
label.
This issue was closed because it has been stalled for 5 days with no activity.
Hi any update on this?
Is your feature request related to a problem? Please describe.
I have a setup where I am streaming to coralogix and S3 simultaneously from an AWS Fargate Container. The logs sent to coralogix are for internal usage and debugging among the team and the S3 logs are for the user observability. I have added certain attributes to the log message using a
filter
to for easy debugging in coralogix. These fields are internal fields which are not to be shown the end user. In coralogix, you need to nest under a specific key calledjson
for it to understand log. I am usingfilter
to put the raw log message under thejson
key. I have to add the attributes keys in thisjson
key only. In S3 output plugin, there is an option to provide thelog_key
which sends only the matching key.The problem here is that the
log_key
only works for the first level of nesting. This is my final message looks like after the filters.Describe the solution you'd like I wanted to provide the
log_key
asjson.log
but the s3 plugin is only honouringjson
and sends all data inside it to S3. I would like to removesome_key_1_for_internal_use
andsome_key_2_for_internal_use
before sending to S3 so that these fields are not visible to the end user.Describe alternatives you've considered It might be possible that I have configured the filters or output in a wrong way. If someone can help me with better solution to my problem, thank you in advance. If this is a feature that is not present then I would be happy to contribute here.
Additional context this is my filter
this is my s3 output