{"id":17348343,"url":"https://github.com/jmervine/splunking","last_synced_at":"2025-10-15T03:32:45.963Z","repository":{"id":144204141,"uuid":"105423477","full_name":"jmervine/splunking","owner":"jmervine","description":"Low level lib to create an http Request object for connecting to Splunk.","archived":false,"fork":false,"pushed_at":"2021-03-26T15:14:17.000Z","size":112,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-31T21:38:57.090Z","etag":null,"topics":["api","authentication","golang","http","splunk"],"latest_commit_sha":null,"homepage":"https://godoc.org/github.com/jmervine/splunking","language":"Go","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/jmervine.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,"publiccode":null,"codemeta":null}},"created_at":"2017-10-01T06:21:59.000Z","updated_at":"2021-03-26T15:14:19.000Z","dependencies_parsed_at":"2023-07-31T22:48:01.224Z","dependency_job_id":null,"html_url":"https://github.com/jmervine/splunking","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jmervine/splunking","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmervine%2Fsplunking","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmervine%2Fsplunking/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmervine%2Fsplunking/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmervine%2Fsplunking/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jmervine","download_url":"https://codeload.github.com/jmervine/splunking/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmervine%2Fsplunking/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279043196,"owners_count":26091399,"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","status":"online","status_checked_at":"2025-10-15T02:00:07.814Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["api","authentication","golang","http","splunk"],"created_at":"2024-10-15T16:52:00.973Z","updated_at":"2025-10-15T03:32:45.940Z","avatar_url":"https://github.com/jmervine.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Splunk Request\n\n[![Build Status](https://travis-ci.org/jmervine/splunking.svg?branch=master)](https://travis-ci.org/jmervine/splunking) [![GoDoc](https://godoc.org/github.com/jmervine/splunking?status.svg)](https://godoc.org/github.com/jmervine/splunking)\n\n\nLow level lib to create an http Request object for connecting to Splunk.\n\n### Usage\n\n```go\nimport (\n    \"fmt\"\n\n    \"github.com/jmervine/splunking\"\n)\n\nfunc main() {\n    // Load configs from environment\n    //  SPLUNK_USERNAME=username\n    //  SPLUNK_PASSWORD=password\n    //  SPLUNK_HOST=splunk.example.com\n    //  SPLUNK_PORT=8089        // default\n    //  SPLUNK_PROTO=https      // default\n    //  SPLUNK_OUTPUT_TYPE=json // default\n    client, err := splunking.Init()\n    if err != nil {\n        panic(err)\n    }\n\n    // Or load from URL - same defaults as above apply\n    client, err = splunking.InitURL(\"https://username:password@splunk.example.com:8089?output_type=json\")\n    if err != nil {\n        panic(err)\n    }\n\n    // Basic request\n    resp, err := client.Get(\"/api/path\", nil)\n    if err != nil {\n        panic(err)\n    }\n\n    fmt.Printf(\"%+v\\n\", resp)\n\n    // Advanced request handling\n    req, err := client.Request(\"GET\", \"/api/path\", nil)\n    if err != nil {\n        panic(err)\n    }\n\n    // ... do stuff with request\n\n    resp, err = client.Submit(req)\n    if err != nil {\n        panic(err)\n    }\n\n    fmt.Printf(\"%+v\\n\", resp)\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmervine%2Fsplunking","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmervine%2Fsplunking","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmervine%2Fsplunking/lists"}