question

gamakgaraj-6982 avatar image
0 Votes"
gamakgaraj-6982 asked ·

Log Analytics timegerated difference

Hi,

Could someone explain me the difference please?
When I'm run query:

search *
| where TimeGenerated < ago(7d)
| count

I got the result: 300 000
When I'm running the same query, but setting timerange in the interface, I got the result: 100 000

77313-image.png



I don't understand what's the difference. Why I got so different results?

azure-monitor
image.png (4.1 KiB)
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

VaibhavChaudhari avatar image
1 Vote"
VaibhavChaudhari answered ·

In first result with where clause, you get the data which is generated before 7 days i.e. before 5-March...

In next query, you are trying to get the data for last 7 days i.e. data generated in between 5-March to today (12-March)


Please don't forget to Accept Answer and Up-vote if the response helped -- Vaibhav

· 1 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Oh! My bad. Thank you very much!

0 Votes 0 ·