{"id":23246283,"url":"https://github.com/wanmail/splunk-prometheus-alertmanager","last_synced_at":"2025-04-06T00:21:13.377Z","repository":{"id":235783030,"uuid":"791248122","full_name":"wanmail/splunk-prometheus-alertmanager","owner":"wanmail","description":"Send your splunk alerts to prometheus alertmanager.","archived":false,"fork":false,"pushed_at":"2024-04-24T11:21:54.000Z","size":130,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-12T06:30:48.565Z","etag":null,"topics":["alertmanager","prometheus-alertmanager","splunk","splunk-apps"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wanmail.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-04-24T11:19:52.000Z","updated_at":"2024-04-24T11:22:48.000Z","dependencies_parsed_at":"2024-04-24T15:54:43.854Z","dependency_job_id":null,"html_url":"https://github.com/wanmail/splunk-prometheus-alertmanager","commit_stats":null,"previous_names":["wanmail/splunk-prometheus-alertmanager"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wanmail%2Fsplunk-prometheus-alertmanager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wanmail%2Fsplunk-prometheus-alertmanager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wanmail%2Fsplunk-prometheus-alertmanager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wanmail%2Fsplunk-prometheus-alertmanager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wanmail","download_url":"https://codeload.github.com/wanmail/splunk-prometheus-alertmanager/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247417554,"owners_count":20935668,"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":["alertmanager","prometheus-alertmanager","splunk","splunk-apps"],"created_at":"2024-12-19T07:13:55.400Z","updated_at":"2025-04-06T00:21:13.319Z","avatar_url":"https://github.com/wanmail.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Prometheus Alertmanager\n\n## Description\nSend your splunk alerts to prometheus alertmanager.\n\nThis app is modified based on [PagerDuty App for Splunk](https://splunkbase.splunk.com/app/3013) .\n\n## Installation\n1. Download the app package from [Splunkbase](https://splunkbase.splunk.com/app/*/).\n2. Install the app on your Splunk instance using one of the following methods:\n    - Splunk Web: Go to **Apps** \u003e **Manage Apps** \u003e **Install app from file**.\n    - Command line: Run the following command: `splunk install app \u003cpath_to_app_package\u003e`.\n3. Restart Splunk if prompted.\n\n## Configuration\n- Integration URL. Is you alertmanager base url.Eventually the alert will be sent to {Integration URL}/api/v2/alerts\n- Integration Key (optional). Actually is basic auth token ( Authorization: {Integration Key} ) .\n\n## Example\nIf you have already configured \"Integration URL\" and \"Integration Key\".\n\nIf our search result like this:\n```json\n{\n    \"name\": \"xxx\",\n    \"type\": \"\",\n    \"hostname\": \"DESKTOP-xxxxxx\",\n    \"os_type\": \"Windows 10 Pro\",\n    \"agent_id\": \"xxxx\",\n    \"create_time\": \"xxxx\",\n    \"file_path\": \"xxxpath\"\n}\n```\n\nYou can configure \"Custom Details\" like this:\n```json\n{\"description\":\"[$result.hostname$] -\u003e [$result.file_path$]\"}\n```\n\nAnd the alert we finally sent to alertmanager looked like this.\n```json\n[\n    {\n        \"labels\": {\n            \"name\": \"xxx\",\n            \"type\": \"\",\n            \"hostname\": \"DESKTOP-xxxxxx\",\n            \"os_type\": \"Windows 10 Pro\",\n            \"agent_id\": \"xxxx\",\n            \"create_time\": \"xxxx\",\n            \"file_path\": \"xxxpath\",\n            \"alertname\": \"{your search name}\"\n        },\n        \"annotations\": {\n            \"description\": \"[DESKTOP-xxxxxx] -\u003e [xxxpath]\"\n        },\n        \"generatorURL\": \"{your search URL}\"\n    }\n]\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwanmail%2Fsplunk-prometheus-alertmanager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwanmail%2Fsplunk-prometheus-alertmanager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwanmail%2Fsplunk-prometheus-alertmanager/lists"}