Skip to main content
Version: v4.24

drop

Removes fields from the event.

drop field...

Description

Removes the given fields from the events. Issues a warning if a field is not present.

Examples

Drop fields from the input

from {
  src: 192.168.0.4,
  dst: 192.168.0.31,
  role: "admin",
  info: {
    id: "cR32kdMD9",
    msg: 8411,
  },
}
drop role, info.id
{
  src: 192.168.0.4,
  dst: 192.168.0.31,
  info: {msg: 8411},
}