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 ?
Hi,
You can check Log file matching.
Best regards
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.
Hi,
Do you see which logs are autodiscovered by OneAgent?
Best regards
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/”.