fluent-plugin-record-modifier icon indicating copy to clipboard operation
fluent-plugin-record-modifier copied to clipboard

Handling complex transformation

Open rverma-jm opened this issue 4 years ago • 0 comments

Hi wondering if the plugin can handle a transformation like

{
  "source": "192.168.29.133",
  "message": "SESSION,150,1,READ,SELECT,TABLE,public.ce_queue,\"select cq.uuid from ce_queue cq where \n\t cq.status='PENDING' limit $1 offset $2\",<not logged>"
}

to convert this to

{
  "source": "192.168.29.133",
  "operation": "READ",
  "name": "public.ce_queue",
  "query": "select cq.uuid from ce_queue cq where cq.status='PENDING' limit $1 offset $2",
  "parameters": "<not logged>"
}

rverma-jm avatar Apr 23 '20 11:04 rverma-jm