03 Jul 2025
12:43 PM
- last edited on
18 Dec 2025
10:38 AM
by
IzabelaRokita
Greetings!
Well, the post subject pretty much sums it put, but what I need is a DQL query to fetch the name of every log source present on a specific host disk.
So, for example, every log source on my environment that begins with "Disk:\Folder1\Folder2"
I have tried to do it but, as the query needed to access every log source to gather this information, the query cost was massive.
Is there any cost-efficient way of achieving this?
Thanks!
Solved! Go to Solution.
07 Jul 2025 10:10 AM
It seems to me that DQL does not support any operator to directly find “all starting with”.
And it also does not allow grouping or collecting unique values in a single fetch logs query.
However, I might be wrong.
Radek
07 Jul 2025 10:42 AM
Hi there
There is a DQL function which can check if a field startsWith something. Take a look at the following example:
fetch logs
| filter startsWith(log.source,"C:\\Users" )
07 Jul 2025 11:18 AM
@imsingh Thanks for the example;)
Featured Posts