Hello Varun , Welcome to MS Q&A
When using Log Analytics Workspace, if your query returns double the results compared to using the Time Range feature, it might be due to how the query is structured. If the time filter is applied after a union of several tables, the query may scan all the data instead of just the specified time range, leading to more records than expected.
To ensure the query only processes the relevant records, apply the time filter within each subquery before performing the union. This way, the query will only consider data from the specified time frame, preventing the retrieval of additional records.
For more detailed guidance, you can refer to the following resources:
Please let us know if any further questions
Kindly accept if it helps
Thanks
Deepanshu