This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import datetime | |
import getopt | |
import glob | |
import logging | |
import subprocess | |
import sys | |
from collections import namedtuple | |
from pathlib import Path | |
from typing import Generator, Dict |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import asyncio | |
import datetime | |
import getopt | |
import glob | |
import logging | |
import os | |
import sys | |
from collections import namedtuple | |
from pathlib import Path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import functools | |
from collections import namedtuple | |
from dataclasses import dataclass, field | |
from typing import TYPE_CHECKING, Optional, Type | |
from django.conf import settings | |
from django.utils.module_loading import import_string | |
from rest_framework import status |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"%{IPORHOST:client_ip} - \[%{IPORHOST:x_forwarded_for}\] - %{DATA:client_identity} \[%{HTTPDATE:request_timestamp}\] \"(?:%{WORD:method} %{NOTSPACE:path}(?: HTTP/%{NUMBER:http_version})?|-)\" %{NUMBER:status_code:int} (?:%{NUMBER:bytes_sent:float}|-) (?:\"(?:%{URI:referrer}|-)\") %{QS:user_agent} %{NUMBER:request_length:int} %{NUMBER:response_time:float} \[%{DATA:upstream_proxy}\] %{DATA:upstream_endpoint} %{NUMBER:upstream_bytes_sent:int} (-|%{NUMBER:upstream_response_time:float}) (-|%{NUMBER:upstream_response:int})" |