menu
techminis

A naukri.com initiative

google-web-stories
source image

Socprime

1w

read

50

img
dot

Image Credit: Socprime

Fluentd: How to Make Nested Hash from Dot-Separated Keys

  • When a log record has keys like test.test, you can use two methods record_transformer and explode plugin, to process these keys and create a nested structure.
  • Using the record_transformer method, you need to follow several steps to create nested fields, while the explode plugin can achieve this in one step.
  • The explode plugin breaks top-level keys with dots into nested structures, allowing easy manipulation of the fields.
  • To use the explode plugin, you need to install it using the command 'gem install fluent-plugin-explode_filter'.

Read Full Article

like

3 Likes

For uninterrupted reading, download the app