datalust / seq-api

HTTP API client for Seq
https://datalust.co/seq
Apache License 2.0
78 stars 21 forks source link

fromDateUtc #5

Closed danpowell88 closed 7 years ago

danpowell88 commented 8 years ago

I was having issues with a lot of logs not showing, when looking at them i was only getting logs up until 10am of the day (I am in Australia/Brisbane so GMT + 10). I was originally sending in DateTime.Now.UtcDate to the frameDateUtc parameter.

When I switch this to just DateTime.Now I am able to receive all of the events.

Seems like something is off here?

nblumhardt commented 8 years ago

Hi! Also in Brisbane here :-)

fromDateUtc is the beginning of the time range to retrieve in chronological order - so passing DateTime.UtcNow as fromDateUtc should almost always return no results. Something like DateTime.UtcNow.AddDays(-1) would get you logs from the last 24 h.

Does this sort it out for you? Cheers!