How to filter Azure logs, or WCF Data Services filters for Dummies

gilly3 picture gilly3 · Apr 21, 2011 · Viewed 19.8k times · Source

I am looking at my Azure logs in the WADLogsTable and would like to filter the results, but I'm clueless as to how to do so. There is a textbox that says:

"Enter a WCF Data Services filter to limit the entities returned"

What is the syntax of a "WCF Data Services filter"? The following gives me an InvalidValueType error saying "The value specified is invalid.":

Timestamp gt '2011-04-20T00:00'

Am I even close? Is there a handy syntax reference somewhere?

Answer

knightpfhor picture knightpfhor · Apr 21, 2011

This query should be in the format:

Timestamp gt datetime'2011-04-20T00:00:00'

Remembering to put that datetime in there is the important bit.

This trips me up every time, so I use the OData overview for reference.