Skip to content

Commit

Permalink
Migrate to logs api V2
Browse files Browse the repository at this point in the history
  • Loading branch information
bokub committed Aug 19, 2024
1 parent 162190a commit aee8e8a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/scripts/ipban.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,13 @@ let loopIteration = 0;

do {
const logsResponse = await fetch(
'https://logs.betterstack.com/api/v1/query?' +
'https://logs.betterstack.com/api/v2/query/live-tail?' +
new URLSearchParams({
from: from.toISOString(),
to: to.toISOString(),
batch: BATCH,
order: 'newest_first',
source_ids: 271774,
}),
{
headers: {
Expand Down

0 comments on commit aee8e8a

Please sign in to comment.