Text logfile check

Is it possible to use an expression to look for log file on a file share based on the servers name?
Something like %computername%

What we are trying to achieve is to check whether a log file exists for each server in a remote file share and bake this into the agents.

You can tag or label the relevant servers and include them in the conditions of the log check.

To further automate this, you could use a small check script to check whether a certain file is present and then automatically set a label for this host: