Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

process_name does not handle 0x0 delimiters #34

Open
afxmac opened this issue Jun 8, 2021 · 1 comment
Open

process_name does not handle 0x0 delimiters #34

afxmac opened this issue Jun 8, 2021 · 1 comment

Comments

@afxmac
Copy link

afxmac commented Jun 8, 2021

Hi,
it seems that the proctitle field uses Hex 0 for delimiters or spaces, so one gets the following:
proctitle comes in as "64617465002B2564"
and ends up as process_name="date+%d"
instead of "date +%d"

@afxmac
Copy link
Author

afxmac commented Jun 8, 2021

A simple solution would be to use the following in props.conf:
urldecode(replace(replace(proctitle,"([0-9A-F]{2})","%\1"),"%00","%20"))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant