12 Aug 2025 09:48 AM - edited 12 Aug 2025 10:25 AM
Hi,
I am new to Dynatrace. Looking to monitor some logs which present in multiple directory (multi depth). Trying to find a way where can define a single source so it can cover all the matching pattern logs recursively in all sub directories.
example:
/logs/abc.gc.log
/logs/xyz/abc.gc.log
/logs/zys/xyz/abc.gc.log
I was trying something like this but seems incorrect
/logs/**/abc.gc.log (this doesn't cover multiple depths)
Is there any way where we can define this in single source ?
13 Aug 2025 11:01 AM
Its not mentioned there that's why checking here. if any one else experienced such requirement and have idea how to configure such use case.
14 Aug 2025 07:58 PM
Hi,
Do you see which logs are autodiscovered by OneAgent?
Best regards
15 Aug 2025 07:07 AM
Hi @Agoyals
It’s strange that ** didn’t work, as it should recursively ignore the number of nested directories.
Perhaps a possible solution would be to define in Grail “File name equals abc.gc.log” along with the condition “Path contains /logs/”.