I’m attempting to create a computer group where the relevance seeks for two specific files on the system. The problem I’m running into however is how to create a relevance that - essentially - searches with “contains” rather than “equals,” because the files in question are created with the machine name affixed to the beginning. For example:
COMPUTER11_SFXPreinstall.log
I need the group relevancy to seek only the “_SFXPreinstall.log” section of the file.
I tried something like “exists file (contains “_SFXPreinstall.log”)” but that tells me it has a syntax error. Admittedly I’m somewhat new to the relevance language.
I have another question then… if I wanted to attempt to seek for something within a LOG or TXT file, what would be the process for that? For example, if I needed to search for the file above “SFXPreinstall.log” and find “Installation Completed Successfully” within it? Is that possible?
exists files whose(name of it ends with “SFXPreinstall.log” AND exists lines whose(it contains “Installation Completed Successfully”) of it) of folders “C:”
The nice thing about the above, is that you can detect failure just by adding a “NOT” in front:
not exists files whose(name of it ends with “SFXPreinstall.log” AND exists lines whose(it contains “Installation Completed Successfully”) of it) of folders “C:”