The profileBasedPolicy uses the glob() function to compare the arguments in the actual command against arguments specified in pf_commands, so it should be possible to use wildcards in pf_commands to specify the directories in which the log files are located.
For example:
pm_commands={
"pmless /var/log/*",
"pmless /var/opt/myapp/*",
}
would allow running "pmrun pmless" on any of the log files in the /var/log or /var/opt/myapp directories.
© ALL RIGHTS RESERVED. Feedback Terms of Use Privacy Cookie Preference Center