How to use PagerDuty plugin to insert data into pagerduty payload

I am trying to send data to PageDuty side using PagerDuty plugin in Logstash output plugin.
I want to insert data into the "payload" field of PagerDuty, but when I use the PagerDuty plugin, the data goes into the "details" field.
Is there any way to insert data into "payload"?
(logstash outputplugins 8.6)

I haven't used PageDuty and don't have .conf which you are using.

Have you tried to use rename or copy:
mutate { copy => { "details" => "payload" } }

I don't think so. The code has :details hardwired.

The pagerduty output plugin can transfer data assuming v1(https://developer.pagerduty.com/api-reference/f0037990796c8-send-an-event-to-pager-duty),
but how should I modify the output plugin to specify a value for Pager v2(https://developer.pagerduty.com/api-reference/368ae3d938c9e-send-an-event-to-pager-duty) that has a payload part?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.