Names of files whose lines of it contains "..."

Hello,

Need a little help here. I have a folder with a ton of log files. I’m trying to see the name of which log files have a string of text that says “failed”.

This is what makes sense to me, however debugger shows "the property ‘files’ is not defined. Hoping someone can help me out here.

files whose ((exist lines whose (it contains “failed”)) of folder “C:\Users\jxb7210\Desktop\BigFix\BES_Client”)

Never mind i got it.

names of files whose (name of it as lowercase starts with “2” and exists lines whose (it contains “failed”) of it) of folders “C:\Users\jxb7210\Desktop\BigFix\BES_Client”

For this kind of special case I might suggest using the file content inspector. This avoids the overhead of reading the files line-by-line and is useful where you just need to see that the string exists somewhere in the file.

names of files whose (name of it as lowercase starts with “2” and content of it contains "failed") of folders “C:\Users\jxb7210\Desktop\BigFix\BES_Client”

https://developer.bigfix.com/relevance/reference/file-content.html

5 Likes