fluent-bit-docs icon indicating copy to clipboard operation
fluent-bit-docs copied to clipboard

Modify on nested fields

Open maintux opened this issue 5 years ago • 1 comments

Hi, I can't figure out how to apply the 'modify' filter on nested fields. What I need is to transform this:

{
   "container": {
      "container_name": "string"
   }
}

into this:

{
   "container": {
      "name": "string"
   }
}

Could someone help me? Thanks

maintux avatar Jul 23 '20 16:07 maintux

afaik, nested fields can not modified directly But you can move them up, modify and then move them down again with https://docs.fluentbit.io/manual/pipeline/filters/nest and https://docs.fluentbit.io/manual/pipeline/filters/modify

floriankoch avatar Aug 23 '20 15:08 floriankoch

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.

github-actions[bot] avatar Oct 22 '22 02:10 github-actions[bot]