{"id":22772520,"url":"https://github.com/willabides/splunk-pipe","last_synced_at":"2025-03-30T12:27:37.904Z","repository":{"id":145457142,"uuid":"323994882","full_name":"WillAbides/splunk-pipe","owner":"WillAbides","description":"like egpipe but for splunk","archived":false,"fork":false,"pushed_at":"2020-12-23T21:58:53.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-04-16T00:26:01.500Z","etag":null,"topics":["golang","shell","splunk","splunk-hec","splunk-http"],"latest_commit_sha":null,"homepage":"","language":"Go","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/WillAbides.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":"2020-12-23T20:23:26.000Z","updated_at":"2024-06-19T12:36:20.112Z","dependencies_parsed_at":"2023-04-06T05:18:43.822Z","dependency_job_id":null,"html_url":"https://github.com/WillAbides/splunk-pipe","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"WillAbides/goproject-tmpl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WillAbides%2Fsplunk-pipe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WillAbides%2Fsplunk-pipe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WillAbides%2Fsplunk-pipe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WillAbides%2Fsplunk-pipe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WillAbides","download_url":"https://codeload.github.com/WillAbides/splunk-pipe/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246318077,"owners_count":20758091,"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":["golang","shell","splunk","splunk-hec","splunk-http"],"created_at":"2024-12-11T17:08:49.228Z","updated_at":"2025-03-30T12:27:37.880Z","avatar_url":"https://github.com/WillAbides.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# splunk-pipe\n\n[![ci](https://github.com/WillAbides/splunk-pipe/workflows/ci/badge.svg?branch=main\u0026event=push)](https://github.com/WillAbides/splunk-pipe/actions?query=workflow%3Aci+branch%3Amaster+event%3Apush)\n\n## Install\n\n`go get github.com/willabides/splunk-pipe/cmd/splunkpipe`\n\n## Usage\n\n```\nUsage: splunkpipe \u003cendpoint\u003e\n\nsplunkpipe posts events to splunk.\n\nexample:\n\n    $ splunk_endpoint=\"http://localhost:8080\"\n    $ splunk_hec_token=\"shhh_secret_token\"\n    $ data=\"$(cat \u003c\u003c\"EOF\"\n        {\"action\": \"obj.add\", \"@timestamp\": 1604953432032, \"el_name\": \"foo\", \"doc_id\": \"asdf\"}\n        {\"action\": \"obj.rem\", \"@timestamp\": 1604953732032, \"el_name\": \"bar\", \"doc_id\": \"fdsa\"}\n      EOF\n      )\"\n    $ echo \"$data\" | \\\n      splunkpipe \"$splunk_endpoint\" \\\n      -H \"Authorization: Splunk $splunk_hec_token\" \\\n      -T 'jp:\"@timestamp\"'\n\nLearn about JMESPath syntax at https://jmespath.org\n\nArguments:\n  \u003cendpoint\u003e    Endpoint for posting events\n\nFlags:\n  -h, --help                   Show context-sensitive help.\n  -t, --sourcetype=STRING      Value for the \"sourcetype\" field. JMESPath expressions allowed\n                               with \"jp:\" prefix.\n  -s, --source=STRING          Value for the \"source\" field. JMESPath expressions allowed with\n                               \"jp:\" prefix.\n  -T, --timestamp=STRING       Value for the \"eventTime\" field converted from epoch milliseconds.\n                               JMESPath expressions allowed with \"jp:\" prefix.\n  -H, --header=HEADER,...      Header to sent with the request in the same format as curl. e.g.\n                               '-H \"Authorization: Splunk $HEC_KEY\"'\n  -h, --host=STRING            Value for the \"host\" field. JMESPath expressions allowed with\n                               \"jp:\" prefix.\n      --index=STRING           Value for the \"index\" field. JMESPath expressions allowed with\n                               \"jp:\" prefix.\n      --batch-size=10          Number of events to send in a batch.\n      --flush-interval=2000    Time in milliseconds to wait before sending a partial batch. Set\n                               to 0 to never send a partial batch.\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillabides%2Fsplunk-pipe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillabides%2Fsplunk-pipe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillabides%2Fsplunk-pipe/lists"}