{"id":17335709,"url":"https://github.com/fufuok/beats-http-output","last_synced_at":"2025-06-20T10:38:19.455Z","repository":{"id":57712273,"uuid":"475331033","full_name":"fufuok/beats-http-output","owner":"fufuok","description":"🐠 Beats (filebeat, metricbeat ...) http output plugin","archived":false,"fork":false,"pushed_at":"2024-08-01T02:19:53.000Z","size":544,"stargazers_count":15,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-16T15:11:53.241Z","etag":null,"topics":["filebeat","http","output"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fufuok.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":"auditbeat/main.go","citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-29T07:34:23.000Z","updated_at":"2024-08-02T06:29:23.000Z","dependencies_parsed_at":"2024-06-19T10:08:52.311Z","dependency_job_id":null,"html_url":"https://github.com/fufuok/beats-http-output","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fufuok%2Fbeats-http-output","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fufuok%2Fbeats-http-output/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fufuok%2Fbeats-http-output/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fufuok%2Fbeats-http-output/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fufuok","download_url":"https://codeload.github.com/fufuok/beats-http-output/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221832636,"owners_count":16888291,"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":["filebeat","http","output"],"created_at":"2024-10-15T15:11:55.376Z","updated_at":"2024-10-28T13:35:44.860Z","avatar_url":"https://github.com/fufuok.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Beats - HTTP output\n\n## Usage\n\n**Download**: [Releases · fufuok/beats-http-output (github.com)](https://github.com/fufuok/beats-http-output/releases)\n\nBeat  | Description\n--- | ---\n[Auditbeat](https://github.com/elastic/beats/tree/main/auditbeat) | Collect your Linux audit framework data and monitor the integrity of your files.\n[Filebeat](https://github.com/elastic/beats/tree/main/filebeat) | Tails and ships log files\n[Functionbeat](https://github.com/elastic/beats/tree/main/x-pack/functionbeat) | Read and ships events from serverless infrastructure.\n[Heartbeat](https://github.com/elastic/beats/tree/main/heartbeat) | Ping remote services for availability\n[Metricbeat](https://github.com/elastic/beats/tree/main/metricbeat) | Fetches sets of metrics from the operating system and services\n[Packetbeat](https://github.com/elastic/beats/tree/main/packetbeat) | Monitors the network and applications by sniffing packets\n[Winlogbeat](https://github.com/elastic/beats/tree/main/winlogbeat) | Fetches and ships Windows Event logs\n[Osquerybeat](https://github.com/elastic/beats/tree/main/x-pack/osquerybeat) | Runs Osquery and manages interraction with it.\n\n**Or**\n\n```shell\ngit clone https://github.com/fufuok/beats-http-output.git\ngo mod tidy\napt install libpcap-dev\nmake filebeat\nmake metricbeat\n...\n```\n\n**Build all programs**:\n\n```shell\nmake\n```\n\n**Build Windows programs**:\n\n```shell\ncd filebeat\ngo build .\n```\n\n**Build Packetbeat on windows**:\n\n1. `gcc` [tdm-gcc (jmeubank.github.io)](https://jmeubank.github.io/tdm-gcc/)\n2. `pcap` [Npcap: Windows Packet Capture Library \u0026 Driver](https://npcap.com/#download)\n   1. Install `Npcap 1.60 installer`\n   2. Unzip `Npcap SDK 1.12 (ZIP)` to `C:\\WpdPack`\n3. `go env -w CGO_ENABLED=1`\n4. `cd packetbeat` and `go build .`\n\n## Acknowledgements\n\n-  [jpchev/beats at features/httpOutputPluginFilebeat (github.com)](https://github.com/jpchev/beats/tree/features/httpOutputPluginFilebeat) \n\n## Configure the Http output\n\nHttp output\n\n\n\nThe Http output sends events directly to a Http endpoint.\n\n**Example configuration:**\n\n```yaml\noutput.http:\n  hosts: [\"https://myhost\"]\n```\n\n**Basic authentication:**\n\n```yaml\noutput.http:\n  hosts: [\"https://myhost\"]\n  username: \"{user}\"\n  password: \"{pwd}\"\n```\n\n#### Configuration options\n\nYou can specify the following options in the `http` section of the {beatname_lc}.yml config file:\n\n##### `protocol`\n\nThe enabled config is a string to set the protocol.\n\nThe default value is ``.\n\n##### `path`\n\nThe path of the http endpoint to connect to (it can be also specified in hosts)\n\nThe default value is ``\n\n```yaml\noutput.http:\n  hosts: [\"https://myhost\"]\n  path: /api\n```\n\nor\n\n```yaml\noutput.http:\n  hosts: [\"https://myhost/api\"]\n```\n\n##### `proxy_url`\n\nThe http proxy to use\n\nThe default value is ``\n\n```yaml\noutput.http:\n  hosts: [\"https://myhost\"]\n  proxy_url: \"http://myproxy:8080\"\n```\n\n##### `loadbalance`\n\nTo load balance across several hosts\n\nThe default value is `false`\n\n```yaml\noutput.http:\n  hosts: [\"https://myhost1\", \"https://myhost2\"]\n  loadbalance: true\n```\n\n##### `batch_publish`\n\nThe default value is `false`\n\n```yaml\noutput.http:\n  hosts: [\"https://myhost\"]\n  batch_publish: true\n```\n\n##### `batch_size`\n\nThe default value is `2048`\n\n```yaml\noutput.http:\n  hosts: [\"https://myhost\"]\n  batch_size: 4096\n```\n\n##### `compression_level`\n\nBetween 0 and 9. The default value is `0`\n\n```yaml\noutput.http:\n  hosts: [\"https://myhost\"]\n  compression_level: 1\n```\n\n##### `tls`\n\nto use client certificates\n\n```yaml\noutput.http:\n  hosts: [\"https://myhost\"]\n  tls: 1\n```\n\n##### `max_retries`\n\nThe default value is `3`\n\n```yaml\noutput.http:\n  hosts: [\"https://myhost\"]\n  max_retries: 3\n```\n\n##### `timeout`\n\nThe default value is `90s`\n\n```yaml\noutput.http:\n  hosts: [\"https://myhost\"]\n  timeout: 180s\n```\n\n##### `headers`\n\nTo set http headers\n\n```yaml\noutput.http:\n  hosts: [\"https://myhost\"]\n  headers:\n    h1: v1\n    h2: v2\n```\n\n##### `content_type`\n\nTo set contenty type of the http request\n\n```yaml\noutput.http:\n  hosts: [\"https://myhost\"]\n  content_type: \"text/json\"\n```\n\n##### `backoff`\n\nBackoff init and max values, in time.Duration type The default value is `backoff.init: 1s` `backoff.max: 60s`\n\n```yaml\noutput.http:\n  hosts: [\"https://myhost\"]\n  backoff.init: 10s\n  backoff.max: 180s\n```\n\n##### `format`\n\nIt can be `json` or `json_lines`. The default value is `json`\n\n```yaml\noutput.http:\n  hosts: [\"https://myhost\"]\n  format: \"text\"\n```\n\n\n## Documentation and Getting Started\n\nYou can find the documentation and getting started guides for each of the Beats\non the [elastic.co site](https://www.elastic.co/guide/):\n\n* [Beats platform](https://www.elastic.co/guide/en/beats/libbeat/current/index.html)\n* [Auditbeat](https://www.elastic.co/guide/en/beats/auditbeat/current/index.html)\n* [Filebeat](https://www.elastic.co/guide/en/beats/filebeat/current/index.html)\n* [Functionbeat](https://www.elastic.co/guide/en/beats/functionbeat/current/index.html)\n* [Heartbeat](https://www.elastic.co/guide/en/beats/heartbeat/current/index.html)\n* [Metricbeat](https://www.elastic.co/guide/en/beats/metricbeat/current/index.html)\n* [Packetbeat](https://www.elastic.co/guide/en/beats/packetbeat/current/index.html)\n* [Winlogbeat](https://www.elastic.co/guide/en/beats/winlogbeat/current/index.html)\n\n## Documentation and Getting Started information for the Elastic Agent\n\nYou can find the documentation and getting started guides for the Elastic Agent\non the [elastic.co site](https://www.elastic.co/downloads/elastic-agent)\n\n## Getting Help\n\nIf you need help or hit an issue, please start by opening a topic on our\n[discuss forums](https://discuss.elastic.co/c/beats). Please note that we\nreserve GitHub tickets for confirmed bugs and enhancement requests.\n\n## Downloads\n\nYou can download pre-compiled Beats binaries, as well as packages for the\nsupported platforms, from [this page](https://www.elastic.co/downloads/beats).\n\n## Contributing\n\nWe'd love working with you! You can help make the Beats better in many ways:\nreport issues, help us reproduce issues, fix bugs, add functionality, or even\ncreate your own Beat.\n\nPlease start by reading our [CONTRIBUTING](CONTRIBUTING.md) file.\n\n## Building Beats from the Source\n\nSee our [CONTRIBUTING](CONTRIBUTING.md) file for information about setting up\nyour dev environment to build Beats from the source.\n\n## Snapshots\n\nFor testing purposes, we generate snapshot builds that you can find [here](https://artifacts-api.elastic.co/v1/search/8.0-SNAPSHOT/). Please be aware that these are built on top of main and are not meant for production.\n\n## CI\n\n### PR Comments\n\nIt is possible to trigger some jobs by putting a comment on a GitHub PR.\n(This service is only available for users affiliated with Elastic and not for open-source contributors.)\n\n* [beats][]\n  * `jenkins run the tests please` or `jenkins run tests` or `/test` will kick off a default build.\n  * `/test macos` will kick off a default build with also the `macos` stages.\n  * `/test \u003cbeat-name\u003e` will kick off the default build for the given PR in addition to the `\u003cbeat-name\u003e` build itself.\n  * `/test \u003cbeat-name\u003e for macos` will kick off a default build with also the `macos` stage for the `\u003cbeat-name\u003e`.\n* [apm-beats-update][]\n  * `/run apm-beats-update`\n* [apm-beats-packaging][]\n  * `/package` or `/packaging` will kick of a build to generate the packages for beats.\n* [apm-beats-tester][]\n  * `/beats-tester` will kick of a build to validate the generated packages.\n\n### PR Labels\n\nIt's possible to configure the build on a GitHub PR by labelling the PR with the below labels\n\n* `\u003cbeat-name\u003e` to force the following builds to run the stages for the `\u003cbeat-name\u003e`\n* `macOS` to force the following builds to run the `macos` stages.\n\n[beats]: https://beats-ci.elastic.co/job/Beats/job/beats/\n[apm-beats-update]: https://beats-ci.elastic.co/job/Beats/job/apm-beats-update/\n[apm-beats-packaging]: https://beats-ci.elastic.co/job/Beats/job/packaging/\n[apm-beats-tester]: https://beats-ci.elastic.co/job/Beats/job/beats-tester/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffufuok%2Fbeats-http-output","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffufuok%2Fbeats-http-output","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffufuok%2Fbeats-http-output/lists"}