Relevance to fetch logfile name with restart data

I am trying to fetch BESClient logfile name with restart data.

Below relevance is giving “A singular expression is required” error.

files whose (locked lines of it contains "Force count") of folder "C:\Program Files (x86)\BigFix Enterprise\BES Client\__BESData\__Global\Logs"

Same issue is with

names of files whose (locked lines of it contains "Force count") of folder "C:\Program Files (x86)\BigFix Enterprise\BES Client\__BESData\__Global\Logs"

Please let me know the issue in this relevance.

Thanks in advance :slight_smile:

locked lines is returning a plural object. Contains compares singulars.
To resolve you might use an additional layer of it

q: files whose (exists locked lines whose (it contains "Force count") of it) of folder "C:\Program Files (x86)\BigFix Enterprise\BES Client\__BESData\__Global\Logs"

3 Likes

Thanks @brolly33. That worked :slight_smile:

1 Like