Get the error logs status
Returns whether this instance reads error logs, whether any error line is stored, and how many problems are new: first seen in the last 24 hours, with a line in the last 24 hours that muted IPs do not hide.
session<token>Session cookie authentication.
Request fulfilled, document follows
application/json- response
Whether error logs are set up or have lines, and how many problems are new.
enabled*booleanThis instance has LOGPARSER_ERROR_LOG_PATHS set.
hasLines*booleanThe database holds at least one error line.
newCount*integerProblems first seen in the last 24 hours that have a line in the last 24 hours from a client that is not muted, or from no client.
curl -X GET 'https://geometrikks.example.com/api/v1/error-logs/status'{ "enabled": true, "hasLines": true, "newCount": 0}Get one error log problem GET
Returns one problem under the same scope as the problem list: its counts, lines per hour or day, top paths, clients, hosts, upstreams and servers (10 each), its latest line in scope, and the probable access log requests behind up to 50 of its latest lines, counting only requests in the range. It needs a start: `fromTimestamp` or `window`. A `window` ends at the time of the request. Without `toTimestamp` or `window` the range also ends then, and lines stamped later still count. A problem with no lines in scope still answers, with zero counts and empty lists.
Count error log lines per hour or day GET
Returns how many lines each hour or day of the range holds, split by nginx level, under the same filters as the list, so the buckets add up to its total. It needs a start: `fromTimestamp` or `window`. A `window` ends at the time of the request. Without `toTimestamp` or `window` the range also ends then, and lines stamped later still count. Ranges up to 7 days and 1 hour get hours, longer ones get days that start at midnight in `tz`. `markers` lists the problems first seen inside the range that have lines in scope, the 20 with the most lines.