Skip to content

Instantly share code, notes, and snippets.

@ageorgop
Created January 9, 2017 19:23
Show Gist options
  • Select an option

  • Save ageorgop/503faa9055b473d4e7eeb65a76b1f10e to your computer and use it in GitHub Desktop.

Select an option

Save ageorgop/503faa9055b473d4e7eeb65a76b1f10e to your computer and use it in GitHub Desktop.
body common control
{
bundlesequence => { "my_classes_from_disk" };
}
bundle agent my_classes_from_disk
# @brief Say Hi to everyone and introduce yourself
{
vars:
"class_files_from_disk" slist => findfiles("$(sys.workdir)/persistent_classes/[a-zA-Z0-9]*");
"base_names[$(class_files_from_disk)]" string => lastnode("$(class_files_from_disk)","/");
"my_classes" slist => getvalues("base_names");
classes:
"$(my_classes)" expression => "any";
reports:
any::
"$(my_classes)";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment