{"id":20757621,"url":"https://github.com/dodevops/ansible-loki-callback","last_synced_at":"2026-05-15T23:08:23.996Z","repository":{"id":245857794,"uuid":"815143818","full_name":"dodevops/ansible-loki-callback","owner":"dodevops","description":"An Ansible callback plugin that logs to a loki instance","archived":false,"fork":false,"pushed_at":"2024-08-19T15:31:04.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-11T16:23:01.288Z","etag":null,"topics":["ansible","ansible-callback","logging","loki"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dodevops.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-14T12:52:59.000Z","updated_at":"2024-08-19T15:30:49.000Z","dependencies_parsed_at":"2024-06-26T15:19:34.791Z","dependency_job_id":"bd99306d-8f20-4fb5-afe1-4b6f0ea5ea08","html_url":"https://github.com/dodevops/ansible-loki-callback","commit_stats":null,"previous_names":["dodevops/ansible-loki-callback"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/dodevops/ansible-loki-callback","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dodevops%2Fansible-loki-callback","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dodevops%2Fansible-loki-callback/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dodevops%2Fansible-loki-callback/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dodevops%2Fansible-loki-callback/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dodevops","download_url":"https://codeload.github.com/dodevops/ansible-loki-callback/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dodevops%2Fansible-loki-callback/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265614142,"owners_count":23798391,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","ansible-callback","logging","loki"],"created_at":"2024-11-17T09:43:25.665Z","updated_at":"2026-05-15T23:08:18.977Z","avatar_url":"https://github.com/dodevops.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ansible-loki-callback: An Ansible callback plugin that logs to a loki instance\n\n## Requirements\n\n* Python3\n* Ansible\n\n## Installation\n\nDownload or clone the repository and install the requirements:\n\n   pip install -r requirements.txt\n\n## Usage\n\nUse the following environment variables to configure the plugin:\n\n* LOKI_URL: URL to the Loki Push API endpoint (https://loki.example.com/api/v1/push)\n* LOKI_USERNAME: Username to authenticate at loki (optional)\n* LOKI_PASSWORD: Password to authenticate at loki (optional)\n* LOKI_DEFAULT_TAGS: A comma separated list of key:value pairs used for every log line (optional)\n* LOKI_ORG_ID: Loki organization id (optional)\n\nThen set `ANSIBLE_CALLBACK_PLUGINS` to the path where you downloaded or cloned the repository to.\n\n## Testing\n\nThe example directory contains a test playbook that can be used to test the callback plugin. Run it using\n\n    ANSIBLE_CALLBACK_PLUGINS=\"${PWD}\" ansible-playbook -i example/inventory.yaml example/playbook.yaml -vvvvvv 2\u003e/dev/null\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdodevops%2Fansible-loki-callback","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdodevops%2Fansible-loki-callback","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdodevops%2Fansible-loki-callback/lists"}