We’re using seq for logging the completion of an import. To monitor the progress of importing a lot of file we’ve created a dashboard in seq.
The log entries are identified by having a property (uuid) and a date / time when the entry was logged. The query for a (completed) import looks like this:
select count(*) as count from stream where Has(uuid) AND @Timestamp <= DateTime('2018-12-04 07:50:00 +1') AND @Timestamp >= DateTime('2018-11-29 20:54 +1') limit 1
We configure the style of the query to display as value and the number of processed files is displayed. Now we set the dashboard to auto refresh every hour. This will keep the number displayed updated once every hour.
The end result is “stunning” when you realise the configuration is dead simple.
Little quirk: to filter untill a certain date/time we needed to use <=, because < only didn't work.