Skip to main content

Django Influx Logs

Put your application logs into InfluxDB

Install

pip install django-influx-logs

Settings

INFLUX_LOGS_ENABLE = True
INFLUX_LOGS_HOST = "localhost"
INFLUX_LOGS_PORT = 8086
INFLUX_LOGS_USERNAME = "my_user"
INFLUX_LOGS_PASSWORD = "mu_psw"
INFLUX_LOGS_DATABASE = "my_db"

Usage example

class SomeDownloadView(View):

    def log_download_action(self, filename):
        tags = {"env_name": "staging"}
        log_action(
            actor=self.request.user.email,
            verb="downloaded",
            action_object=filename,
            tags=tags,
        )

    def get(self):
        # At some point here, we want to log the user's action
        self.log_download_action(filename="my-file.txt")

Metadata

Release files for django-influx-logs 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-influx-logs 0.0.5
File Size Uploaded Provenance Actions
django-influx-logs-0.0.5.tar.gz 3.2 kB Without provenance Details for django-influx-logs-0.0.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-influx-logs 0.0.5
File Interpreter ABI Platform Actions
django_influx_logs-0.0.5-py3-none-any.whl Python 3 none any Details for django_influx_logs-0.0.5-py3-none-any.whl

Total release size: 7.3 kB

Release files / django-influx-logs-0.0.5.tar.gz

Download URL django-influx-logs-0.0.5.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
35b8a6e35ac89a440bee6ef550b6ba97654b67c57eb4bab5be13744f1ff2d342
BLAKE2b-256 checksum
How to use checksums
f3e3bd8f7fc938483b326a31d611642b8b7d9cbcb678e110062efc37cae58382
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

Release files / django_influx_logs-0.0.5-py3-none-any.whl

Download URL django_influx_logs-0.0.5-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7d7014028244e44a52cf2d0b3c2f86b7d24ab83efe8753e16c9d5da847b56dc4
BLAKE2b-256 checksum
How to use checksums
2e97cbaac0015bde1e00780022c88edbfc6c6dc8eca425f0b32545efb6e97ad6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

Security for django-influx-logs 0.0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page