Merge pull request #1950 from peterbe/bug-982742-fix-tests-from-regression

fixes bug 982742 - fix tests from regression
fixes bug 976755 - laglog endpoint produces way too much data