Nested Jason array in Fluentd

362 views
Skip to first unread message

Satyajit Paul

unread,
Sep 29, 2021, 12:22:13 PM9/29/21
to flu...@googlegroups.com
Hi Team,

I need to create a nested jason array in Fluentd and send it to the http server using http output plugin. I am using the below code to do this.

To create the nested jaran array, I am using @type record_transformer, but the data is not created successfully.

So, does anybody have any idea how to create a Nested Jason array and send it to http server ?

        <filter fpcon.**>
          @type record_transformer
          <format>
            @type json
          </format>
          <record>
            id "Fd01"
            name "fdname"
            value "{
                        'EventType': 'FdDown',
                        'Severity' : 'minor'
                   }"
          </record>
        </filter>

        <match fpcon.**>
          @type http
          endpoint http://0.0.0.:10170/postAlarmRequest
          open_timeout 2
          <format>
            @type json
          </format>
          <buffer>
            flush_interval 10s
          </buffer>
        </match>

Thanks,
Satyajit

Ibrahim Jimoh

unread,
Oct 5, 2021, 2:32:33 PM10/5/21
to Fluentd Google Group
Reply all
Reply to author
Forward
0 new messages