urldecode procedure?


#1 nimaimalle

There are many convenient string functions and procedures in the nxlog language, but I did not see one for urldecode. I have some data flowing through the web logs that the client is encoding, and it would be useful to have nxlog decode it. For example, something like:

    $data = urldecode("%61%6a%61%78%5f%66%6f%72%6d");   # $data = "ajax_form"

In addition to requesting that functionality, is there any workarounds you could suggest?

#2 Zhengshi Nxlog ✓
#1 nimaimalle
There are many convenient string functions and procedures in the nxlog language, but I did not see one for urldecode. I have some data flowing through the web logs that the client is encoding, and it would be useful to have nxlog decode it. For example, something like: $data = urldecode("%61%6a%61%78%5f%66%6f%72%6d"); # $data = "ajax_form" In addition to requesting that functionality, is there any workarounds you could suggest?

I think you have already noticed that this does not exist currently.
As a workaround , you could use xm_perl and write a simple perl script to be used with the events.
https://nxlog.co/docs/nxlog-ce/nxlog-reference-manual.html#xm_perl