Forum Discussion

SecAutEng's avatar
SecAutEng
Copper Contributor
Apr 14, 2023

Issues with timespan on log analytics query API

Hi,

This appears to be the best place for this query:

We've been trying to set the API timespan for log analytics queries.

However, even when using the correct ISO8601 format (PT1H for example), it does not work as it should - it does not work in a comparable manner to using the time period piece in the UI. There is no difference between using the Timespan piece and not - it returns the same details either way, in the example I was testing, multiple weeks worth (no time period was set inside the query).

 

Query - Get - REST API (Azure Log Analytics) | Microsoft Learn

Is this a bug, or is there a different format required for this? We have also tried with 1H, 01:00:00, etc., to no avail.


Many thanks,

Keith

No RepliesBe the first to reply

Resources